pub struct ImportableName(/* private fields */);
Implementations§
Source§impl ImportableName
impl ImportableName
pub fn new(name: String) -> ImportableName
pub fn new_optional(name: Option<String>) -> ImportableName
pub fn name(&self) -> Option<&str>
pub fn is_default(&self) -> bool
Trait Implementations§
Source§impl Clone for ImportableName
impl Clone for ImportableName
Source§fn clone(&self) -> ImportableName
fn clone(&self) -> ImportableName
Returns a duplicate of the value. Read more
1.0.0 · 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 ImportableName
impl Debug for ImportableName
Source§impl Default for ImportableName
impl Default for ImportableName
Source§fn default() -> ImportableName
fn default() -> ImportableName
Returns the “default value” for a type. Read more
Source§impl Hash for ImportableName
impl Hash for ImportableName
Source§impl PartialEq for ImportableName
impl PartialEq for ImportableName
impl Eq for ImportableName
impl StructuralPartialEq for ImportableName
Auto Trait Implementations§
impl Freeze for ImportableName
impl RefUnwindSafe for ImportableName
impl Send for ImportableName
impl Sync for ImportableName
impl Unpin for ImportableName
impl UnwindSafe for ImportableName
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