[][src]Struct gluon_base::symbol::Symbol

pub struct Symbol(_);

A symbol uniquely identifies something regardless of its name and which module it originated from

Implementations

impl Symbol[src]

pub fn strong_count(sym: &Symbol) -> usize[src]

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

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

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

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

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 AsRef<str> for Symbol[src]

impl<'ast, Id> AstClone<'ast, Id> for Symbol[src]

impl Borrow<SymbolRef> for Symbol[src]

impl Clone for Symbol[src]

impl Debug for Symbol[src]

impl Default for Symbol[src]

impl Deref for Symbol[src]

type Target = SymbolRef

The resulting type after dereferencing.

impl Display for Symbol[src]

impl Eq for Symbol[src]

impl<'_> From<&'_ str> for Symbol[src]

impl From<String> for Symbol[src]

impl Hash for Symbol[src]

impl Ord for Symbol[src]

impl PartialEq<Symbol> for Symbol[src]

impl PartialEq<Symbol> for SymbolRef[src]

impl PartialEq<SymbolRef> for Symbol[src]

impl PartialOrd<Symbol> for Symbol[src]

impl StructuralEq for Symbol[src]

Auto Trait Implementations

impl RefUnwindSafe for Symbol

impl Send for Symbol

impl Sync for Symbol

impl Unpin for Symbol

impl UnwindSafe for Symbol

Blanket Implementations

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

impl<T> Any for T where
    T: Any
[src]

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

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

impl<T> CloneAny for T where
    T: Clone + Any
[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.