Struct shiratsu_naming::naming::tosec::TOSECMultiSetName
source · [−]pub struct TOSECMultiSetName<'a> { /* private fields */ }
Expand description
A TOSEC format file name representing a multi-image set.
Implementations
sourceimpl TOSECMultiSetName<'_>
impl TOSECMultiSetName<'_>
sourcepub fn try_parse<S: AsRef<str> + ?Sized>(
input: &S
) -> Result<TOSECMultiSetName<'_>, NameError>
pub fn try_parse<S: AsRef<str> + ?Sized>(
input: &S
) -> Result<TOSECMultiSetName<'_>, NameError>
Tries to parse a multi-image set name with the TOSEC naming convention.
sourcepub fn get_single(&self, index: usize) -> Option<TOSECName<'_>>
pub fn get_single(&self, index: usize) -> Option<TOSECName<'_>>
Gets a TOSECName
from a multi-set name.
This method will clone tokens and string slices to include global flags, but does not clone the underlying string segments.
Trait Implementations
sourceimpl<'a> Clone for TOSECMultiSetName<'a>
impl<'a> Clone for TOSECMultiSetName<'a>
sourcefn clone(&self) -> TOSECMultiSetName<'a>
fn clone(&self) -> TOSECMultiSetName<'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 TOSECMultiSetName<'a>
impl<'a> Debug for TOSECMultiSetName<'a>
sourceimpl Display for TOSECMultiSetName<'_>
impl Display for TOSECMultiSetName<'_>
sourceimpl<'a> From<(Vec<Vec<TOSECToken<'a>, Global>, Global>, Vec<TOSECToken<'a>, Global>)> for TOSECMultiSetName<'a>
impl<'a> From<(Vec<Vec<TOSECToken<'a>, Global>, Global>, Vec<TOSECToken<'a>, Global>)> for TOSECMultiSetName<'a>
sourcefn from(vecs: (Vec<Vec<TOSECToken<'a>>>, Vec<TOSECToken<'a>>)) -> Self
fn from(vecs: (Vec<Vec<TOSECToken<'a>>>, Vec<TOSECToken<'a>>)) -> Self
Converts to this type from the input type.
sourceimpl<'a> PartialEq<TOSECMultiSetName<'a>> for TOSECMultiSetName<'a>
impl<'a> PartialEq<TOSECMultiSetName<'a>> for TOSECMultiSetName<'a>
sourcefn eq(&self, other: &TOSECMultiSetName<'a>) -> bool
fn eq(&self, other: &TOSECMultiSetName<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TOSECMultiSetName<'a>) -> bool
fn ne(&self, other: &TOSECMultiSetName<'a>) -> bool
This method tests for !=
.
impl<'a> Eq for TOSECMultiSetName<'a>
impl<'a> StructuralEq for TOSECMultiSetName<'a>
impl<'a> StructuralPartialEq for TOSECMultiSetName<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for TOSECMultiSetName<'a>
impl<'a> Send for TOSECMultiSetName<'a>
impl<'a> Sync for TOSECMultiSetName<'a>
impl<'a> Unpin for TOSECMultiSetName<'a>
impl<'a> UnwindSafe for TOSECMultiSetName<'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.