Struct GoExampleName
pub struct GoExampleName(/* private fields */);Implementations§
§impl GoExampleName
impl GoExampleName
pub fn new(value: impl AsRef<str>) -> Result<GoExampleName, GoTestError>
pub fn new(value: impl AsRef<str>) -> Result<GoExampleName, GoTestError>
Creates Go testing name metadata.
§Errors
Returns GoTestError when the name is empty or has the wrong Go testing prefix.
Trait Implementations§
§impl AsRef<str> for GoExampleName
impl AsRef<str> for GoExampleName
§impl Clone for GoExampleName
impl Clone for GoExampleName
§fn clone(&self) -> GoExampleName
fn clone(&self) -> GoExampleName
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for GoExampleName
impl Debug for GoExampleName
§impl Display for GoExampleName
impl Display for GoExampleName
§impl FromStr for GoExampleName
impl FromStr for GoExampleName
§type Err = GoTestError
type Err = GoTestError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<GoExampleName, <GoExampleName as FromStr>::Err>
fn from_str( value: &str, ) -> Result<GoExampleName, <GoExampleName as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for GoExampleName
impl Hash for GoExampleName
§impl Ord for GoExampleName
impl Ord for GoExampleName
§impl PartialEq for GoExampleName
impl PartialEq for GoExampleName
§impl PartialOrd for GoExampleName
impl PartialOrd for GoExampleName
§impl TryFrom<&str> for GoExampleName
impl TryFrom<&str> for GoExampleName
§type Error = GoTestError
type Error = GoTestError
The type returned in the event of a conversion error.
§fn try_from(
value: &str,
) -> Result<GoExampleName, <GoExampleName as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<GoExampleName, <GoExampleName as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for GoExampleName
impl StructuralPartialEq for GoExampleName
Auto Trait Implementations§
impl Freeze for GoExampleName
impl RefUnwindSafe for GoExampleName
impl Send for GoExampleName
impl Sync for GoExampleName
impl Unpin for GoExampleName
impl UnsafeUnpin for GoExampleName
impl UnwindSafe for GoExampleName
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more