Struct GoTestName
pub struct GoTestName(/* private fields */);Implementations§
§impl GoTestName
impl GoTestName
pub fn new(value: impl AsRef<str>) -> Result<GoTestName, GoTestError>
pub fn new(value: impl AsRef<str>) -> Result<GoTestName, 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 GoTestName
impl AsRef<str> for GoTestName
§impl Clone for GoTestName
impl Clone for GoTestName
§fn clone(&self) -> GoTestName
fn clone(&self) -> GoTestName
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 GoTestName
impl Debug for GoTestName
§impl Display for GoTestName
impl Display for GoTestName
§impl FromStr for GoTestName
impl FromStr for GoTestName
§type Err = GoTestError
type Err = GoTestError
The associated error which can be returned from parsing.
§fn from_str(value: &str) -> Result<GoTestName, <GoTestName as FromStr>::Err>
fn from_str(value: &str) -> Result<GoTestName, <GoTestName as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for GoTestName
impl Hash for GoTestName
§impl Ord for GoTestName
impl Ord for GoTestName
§impl PartialEq for GoTestName
impl PartialEq for GoTestName
§impl PartialOrd for GoTestName
impl PartialOrd for GoTestName
§impl TryFrom<&str> for GoTestName
impl TryFrom<&str> for GoTestName
§type Error = GoTestError
type Error = GoTestError
The type returned in the event of a conversion error.
§fn try_from(
value: &str,
) -> Result<GoTestName, <GoTestName as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<GoTestName, <GoTestName as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for GoTestName
impl StructuralPartialEq for GoTestName
Auto Trait Implementations§
impl Freeze for GoTestName
impl RefUnwindSafe for GoTestName
impl Send for GoTestName
impl Sync for GoTestName
impl Unpin for GoTestName
impl UnsafeUnpin for GoTestName
impl UnwindSafe for GoTestName
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