pub struct GoTestFileName(/* private fields */);Expand description
Validated Go test file-name metadata.
Implementations§
Source§impl GoTestFileName
impl GoTestFileName
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, GoTestError>
pub fn new(value: impl AsRef<str>) -> Result<Self, GoTestError>
Creates Go test file-name metadata.
§Errors
Returns GoTestError when the file name is empty or does not end in _test.go.
Trait Implementations§
Source§impl AsRef<str> for GoTestFileName
impl AsRef<str> for GoTestFileName
Source§impl Clone for GoTestFileName
impl Clone for GoTestFileName
Source§fn clone(&self) -> GoTestFileName
fn clone(&self) -> GoTestFileName
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 GoTestFileName
impl Debug for GoTestFileName
Source§impl Display for GoTestFileName
impl Display for GoTestFileName
Source§impl FromStr for GoTestFileName
impl FromStr for GoTestFileName
Source§impl Hash for GoTestFileName
impl Hash for GoTestFileName
Source§impl Ord for GoTestFileName
impl Ord for GoTestFileName
Source§fn cmp(&self, other: &GoTestFileName) -> Ordering
fn cmp(&self, other: &GoTestFileName) -> 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 GoTestFileName
impl PartialEq for GoTestFileName
Source§fn eq(&self, other: &GoTestFileName) -> bool
fn eq(&self, other: &GoTestFileName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GoTestFileName
impl PartialOrd for GoTestFileName
Source§impl TryFrom<&str> for GoTestFileName
impl TryFrom<&str> for GoTestFileName
impl Eq for GoTestFileName
impl StructuralPartialEq for GoTestFileName
Auto Trait Implementations§
impl Freeze for GoTestFileName
impl RefUnwindSafe for GoTestFileName
impl Send for GoTestFileName
impl Sync for GoTestFileName
impl Unpin for GoTestFileName
impl UnsafeUnpin for GoTestFileName
impl UnwindSafe for GoTestFileName
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