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