pub struct GoTestName(/* private fields */);Implementations§
Source§impl GoTestName
impl GoTestName
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, GoTestError>
pub fn new(value: impl AsRef<str>) -> Result<Self, 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 GoTestName
impl AsRef<str> for GoTestName
Source§impl Clone for GoTestName
impl Clone for GoTestName
Source§fn clone(&self) -> GoTestName
fn clone(&self) -> GoTestName
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 GoTestName
impl Debug for GoTestName
Source§impl Display for GoTestName
impl Display for GoTestName
Source§impl FromStr for GoTestName
impl FromStr for GoTestName
Source§impl Hash for GoTestName
impl Hash for GoTestName
Source§impl Ord for GoTestName
impl Ord for GoTestName
Source§fn cmp(&self, other: &GoTestName) -> Ordering
fn cmp(&self, other: &GoTestName) -> 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 GoTestName
impl PartialEq for GoTestName
Source§fn eq(&self, other: &GoTestName) -> bool
fn eq(&self, other: &GoTestName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GoTestName
impl PartialOrd for GoTestName
Source§impl TryFrom<&str> for GoTestName
impl TryFrom<&str> for GoTestName
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