pub struct GoBenchmarkName(/* private fields */);Implementations§
Source§impl GoBenchmarkName
impl GoBenchmarkName
Sourcepub 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§
Source§impl AsRef<str> for GoBenchmarkName
impl AsRef<str> for GoBenchmarkName
Source§impl Clone for GoBenchmarkName
impl Clone for GoBenchmarkName
Source§fn clone(&self) -> GoBenchmarkName
fn clone(&self) -> GoBenchmarkName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GoBenchmarkName
impl Debug for GoBenchmarkName
Source§impl Display for GoBenchmarkName
impl Display for GoBenchmarkName
Source§impl FromStr for GoBenchmarkName
impl FromStr for GoBenchmarkName
Source§type Err = GoTestError
type Err = GoTestError
The associated error which can be returned from parsing.
Source§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 moreSource§impl Hash for GoBenchmarkName
impl Hash for GoBenchmarkName
Source§impl Ord for GoBenchmarkName
impl Ord for GoBenchmarkName
Source§fn cmp(&self, other: &GoBenchmarkName) -> Ordering
fn cmp(&self, other: &GoBenchmarkName) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GoBenchmarkName
impl PartialEq for GoBenchmarkName
Source§fn eq(&self, other: &GoBenchmarkName) -> bool
fn eq(&self, other: &GoBenchmarkName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GoBenchmarkName
impl PartialOrd for GoBenchmarkName
Source§impl TryFrom<&str> for GoBenchmarkName
impl TryFrom<&str> for GoBenchmarkName
Source§type Error = GoTestError
type Error = GoTestError
The type returned in the event of a conversion error.
Source§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