Struct syntax::ast::Name  [−][src]
pub struct Name(_);
A symbol is an interned or gensymed string.
Methods
impl Symbol[src] 
impl Symbolpub fn intern(string: &str) -> Symbol[src] 
pub fn intern(string: &str) -> SymbolMaps a string to its interned representation.
pub fn interned(self) -> Symbol[src] 
pub fn interned(self) -> Symbolpub fn gensym(string: &str) -> Symbol[src] 
pub fn gensym(string: &str) -> Symbolgensym's a new usize, using the current interner.
pub fn gensymed(self) -> Symbol[src] 
pub fn gensymed(self) -> Symbolpub fn as_str(self) -> LocalInternedString[src] 
pub fn as_str(self) -> LocalInternedStringpub fn as_interned_str(self) -> InternedString[src] 
pub fn as_interned_str(self) -> InternedStringpub fn as_u32(self) -> u32[src] 
pub fn as_u32(self) -> u32Trait Implementations
impl !Send for Symbol[src] 
impl !Send for Symbolimpl PartialOrd<Symbol> for Symbol[src] 
impl PartialOrd<Symbol> for Symbolfn partial_cmp(&self, other: &Symbol) -> Option<Ordering>[src] 
fn partial_cmp(&self, other: &Symbol) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Symbol) -> bool[src] 
fn lt(&self, other: &Symbol) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Symbol) -> bool[src] 
fn le(&self, other: &Symbol) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Symbol) -> bool[src] 
fn gt(&self, other: &Symbol) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Symbol) -> bool[src] 
fn ge(&self, other: &Symbol) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Hash for Symbol[src] 
impl Hash for Symbolfn hash<__H>(&self, state: &mut __H) where
    __H: Hasher, [src] 
fn hash<__H>(&self, state: &mut __H) where
    __H: Hasher, Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher, 1.3.0[src] 
fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Display for Symbol[src] 
impl Display for Symbolfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src] 
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Decodable for Symbol[src] 
impl Decodable for Symbolimpl Clone for Symbol[src] 
impl Clone for Symbolfn clone(&self) -> Symbol[src] 
fn clone(&self) -> SymbolReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src] 
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for Symbol[src] 
impl Debug for Symbolfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src] 
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Copy for Symbol[src] 
impl Copy for Symbolimpl Ord for Symbol[src] 
impl Ord for Symbolfn cmp(&self, other: &Symbol) -> Ordering[src] 
fn cmp(&self, other: &Symbol) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src] 
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src] 
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl !Sync for Symbol[src] 
impl !Sync for Symbolimpl Eq for Symbol[src] 
impl Eq for Symbolimpl Encodable for Symbol[src] 
impl Encodable for Symbolimpl PartialEq<Symbol> for Symbol[src] 
impl PartialEq<Symbol> for Symbolfn eq(&self, other: &Symbol) -> bool[src] 
fn eq(&self, other: &Symbol) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Symbol) -> bool[src] 
fn ne(&self, other: &Symbol) -> boolThis method tests for !=.
impl<T> PartialEq<T> for Symbol where
    T: Deref<Target = str>, [src] 
impl<T> PartialEq<T> for Symbol where
    T: Deref<Target = str>,