pub enum NameWithOrWithoutMod {
WithoutMod(String),
WithMod(String, String),
}Variants§
Implementations§
Source§impl NameWithOrWithoutMod
impl NameWithOrWithoutMod
pub fn to_name_string(&self) -> String
Trait Implementations§
Source§impl Clone for NameWithOrWithoutMod
impl Clone for NameWithOrWithoutMod
Source§fn clone(&self) -> NameWithOrWithoutMod
fn clone(&self) -> NameWithOrWithoutMod
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 moreAuto Trait Implementations§
impl Freeze for NameWithOrWithoutMod
impl RefUnwindSafe for NameWithOrWithoutMod
impl Send for NameWithOrWithoutMod
impl Sync for NameWithOrWithoutMod
impl Unpin for NameWithOrWithoutMod
impl UnsafeUnpin for NameWithOrWithoutMod
impl UnwindSafe for NameWithOrWithoutMod
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