[][src]Enum gluon_base::types::SymbolKey

pub enum SymbolKey {
    Owned(Symbol),
    Ref(&'static SymbolRef),
}

Variants

Owned(Symbol)
Ref(&'static SymbolRef)

Methods from Deref<Target = SymbolRef>

pub fn name_eq(&self, other: &SymbolRef) -> bool[src]

Checks whether the names of two symbols are equal

pub fn is_global(&self) -> bool[src]

pub fn as_pretty_str(&self) -> &str[src]

pub fn as_str(&self) -> &str[src]

pub fn name(&self) -> &Name[src]

pub fn raw_name(&self) -> &Name[src]

pub fn declared_name(&self) -> &str[src]

Returns the name of this symbol as it was originally declared (strips location information and module information)

pub fn definition_name(&self) -> &str[src]

Trait Implementations

impl Borrow<SymbolRef> for SymbolKey[src]

impl Clone for SymbolKey[src]

impl Debug for SymbolKey[src]

impl Deref for SymbolKey[src]

type Target = SymbolRef

The resulting type after dereferencing.

impl Display for SymbolKey[src]

impl Eq for SymbolKey[src]

impl Hash for SymbolKey[src]

impl Ord for SymbolKey[src]

impl PartialEq<SymbolKey> for SymbolKey[src]

impl PartialOrd<SymbolKey> for SymbolKey[src]

impl StructuralEq for SymbolKey[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Id> AsId<Id> for Id where
    Id: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.