[−][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
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]
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 DisplayEnv for Symbols
[src]
impl IdentEnv for Symbols
[src]
impl Default for Symbols
[src]
impl Debug for Symbols
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,