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