pub enum Name {
Imported(ImportedName),
BuiltIn(BuiltInName),
Local(LocalName),
}
Variants§
Implementations§
Source§impl Name
impl Name
pub fn imported(module: &str, name: &str) -> ImportedName
pub fn imported_alias(module: &str, name: &str, alias: &str) -> ImportedName
pub fn built_in(name: &str) -> BuiltInName
pub fn local(name: &str) -> LocalName
pub fn format<E>(&self, out: &mut E) -> Result<()>where
E: ElementFormat,
Trait Implementations§
Source§impl From<BuiltInName> for Name
impl From<BuiltInName> for Name
Source§fn from(value: BuiltInName) -> Name
fn from(value: BuiltInName) -> Name
Converts to this type from the input type.
Source§impl From<ImportedName> for Name
impl From<ImportedName> for Name
Source§fn from(value: ImportedName) -> Name
fn from(value: ImportedName) -> Name
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Name
impl RefUnwindSafe for Name
impl Send for Name
impl Sync for Name
impl Unpin for Name
impl UnwindSafe for Name
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