Struct shiratsu_naming::naming::goodtools::GoodToolsName
source · [−]#[repr(transparent)]pub struct GoodToolsName<'a>(_);
Expand description
A GoodTools format file name.
The order of tokens in a
GoodToolsName
is significant in order of appearance in
the input file name.
Trait Implementations
sourceimpl<'a> Clone for GoodToolsName<'a>
impl<'a> Clone for GoodToolsName<'a>
sourcefn clone(&self) -> GoodToolsName<'a>
fn clone(&self) -> GoodToolsName<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for GoodToolsName<'a>
impl<'a> Debug for GoodToolsName<'a>
sourceimpl Display for GoodToolsName<'_>
impl Display for GoodToolsName<'_>
sourceimpl<'a> From<Vec<GoodToolsToken<'a>, Global>> for GoodToolsName<'a>
impl<'a> From<Vec<GoodToolsToken<'a>, Global>> for GoodToolsName<'a>
sourcefn from(vec: Vec<GoodToolsToken<'a>>) -> Self
fn from(vec: Vec<GoodToolsToken<'a>>) -> Self
Converts to this type from the input type.
sourceimpl<'a> PartialEq<GoodToolsName<'a>> for GoodToolsName<'a>
impl<'a> PartialEq<GoodToolsName<'a>> for GoodToolsName<'a>
sourcefn eq(&self, other: &GoodToolsName<'a>) -> bool
fn eq(&self, other: &GoodToolsName<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GoodToolsName<'a>) -> bool
fn ne(&self, other: &GoodToolsName<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> TokenizedName<'a, GoodToolsToken<'a>> for GoodToolsName<'a>
impl<'a> TokenizedName<'a, GoodToolsToken<'a>> for GoodToolsName<'a>
sourcefn iter(&self) -> Iter<'_, GoodToolsToken<'a>>
fn iter(&self) -> Iter<'_, GoodToolsToken<'a>>
Returns an iterator over the tokens of this name.
sourcefn try_parse<S: AsRef<str> + ?Sized>(
input: &'a S
) -> Result<GoodToolsName<'a>, NameError>
fn try_parse<S: AsRef<str> + ?Sized>(
input: &'a S
) -> Result<GoodToolsName<'a>, NameError>
Tries to parse the input string using the naming convention of this tokenized name. Read more
sourcefn naming_convention() -> NamingConvention
fn naming_convention() -> NamingConvention
The naming convention of this tokenized name.
impl<'a> Eq for GoodToolsName<'a>
impl<'a> StructuralEq for GoodToolsName<'a>
impl<'a> StructuralPartialEq for GoodToolsName<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for GoodToolsName<'a>
impl<'a> Send for GoodToolsName<'a>
impl<'a> Sync for GoodToolsName<'a>
impl<'a> Unpin for GoodToolsName<'a>
impl<'a> UnwindSafe for GoodToolsName<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.