Enum gluon_base::types::SymbolKey
source · pub enum SymbolKey {
Owned(Symbol),
Ref(&'static SymbolRef),
}
Variants§
Methods from Deref<Target = SymbolRef>§
sourcepub fn name_eq(&self, other: &SymbolRef) -> bool
pub fn name_eq(&self, other: &SymbolRef) -> bool
Checks whether the names of two symbols are equal
pub fn is_global(&self) -> bool
pub fn as_pretty_str(&self) -> &str
pub fn as_str(&self) -> &str
pub fn name(&self) -> &Name
pub fn raw_name(&self) -> &Name
sourcepub fn declared_name(&self) -> &str
pub fn declared_name(&self) -> &str
Returns the name of this symbol as it was originally declared (strips location information and module information)
pub fn definition_name(&self) -> &str
Trait Implementations§
source§impl Ord for SymbolKey
impl Ord for SymbolKey
source§impl PartialEq for SymbolKey
impl PartialEq for SymbolKey
source§impl PartialOrd for SymbolKey
impl PartialOrd for SymbolKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for SymbolKey
impl StructuralEq for SymbolKey
Auto Trait Implementations§
impl RefUnwindSafe for SymbolKey
impl Send for SymbolKey
impl Sync for SymbolKey
impl Unpin for SymbolKey
impl UnwindSafe for SymbolKey
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