[−][src]Struct gluon_base::symbol::Symbols
Symbols
is a bidirectional mapping between Symbol
s and their name as represented in a
source file.
Used to make identifiers within a single module point to the same symbol
Implementations
impl Symbols
[src]
pub fn new() -> Symbols
[src]
pub fn simple_symbol<N>(&mut self, name: N) -> Symbol where
N: Into<NameBuf> + AsRef<Name>,
[src]
N: Into<NameBuf> + AsRef<Name>,
pub fn symbol<N>(&mut self, name: SymbolData<N>) -> Symbol where
N: Into<NameBuf> + AsRef<Name>,
[src]
N: Into<NameBuf> + AsRef<Name>,
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]
N: AsRef<Name>,
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
Trait Implementations
impl Debug for Symbols
[src]
impl Default for Symbols
[src]
impl DisplayEnv for Symbols
[src]
impl IdentEnv for Symbols
[src]
Auto Trait Implementations
impl RefUnwindSafe for Symbols
impl Send for Symbols
impl Sync for Symbols
impl Unpin for Symbols
impl UnwindSafe for Symbols
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,