[][src]Struct gluon_base::symbol::Symbols

pub struct Symbols { /* fields omitted */ }

Symbols is a bidirectional mapping between Symbols and their name as represented in a source file. Used to make identifiers within a single module point to the same symbol

Methods

impl Symbols[src]

pub fn new() -> Symbols[src]

pub fn symbol<N>(&mut self, name: N) -> Symbol where
    N: Into<NameBuf> + AsRef<Name>, 
[src]

Looks up the symbol for name or creates a new symbol if it does not exist

pub fn contains_name<N>(&mut self, name: N) -> bool where
    N: AsRef<Name>, 
[src]

pub fn len(&self) -> usize[src]

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

Trait Implementations

impl DisplayEnv for Symbols[src]

type Ident = Symbol

impl IdentEnv for Symbols[src]

impl Default for Symbols[src]

impl Debug for Symbols[src]

Auto Trait Implementations

impl Send for Symbols

impl Unpin for Symbols

impl Sync for Symbols

impl UnwindSafe for Symbols

impl RefUnwindSafe for Symbols

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.

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

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

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