Struct gluon_base::symbol::SymbolRef  
source · pub struct SymbolRef(/* private fields */);Implementations§
source§impl SymbolRef
 
impl SymbolRef
pub fn new<N: ?Sized + AsRef<str>>(n: &N) -> &SymbolRef
sourcepub fn name_eq(&self, other: &SymbolRef) -> bool
 
pub fn name_eq(&self, other: &SymbolRef) -> bool
Checks whether the names of two symbols are equal
pub fn is_global(&self) -> bool
pub fn as_pretty_str(&self) -> &str
pub fn as_str(&self) -> &str
pub fn name(&self) -> &Name
pub fn raw_name(&self) -> &Name
sourcepub fn declared_name(&self) -> &str
 
pub fn declared_name(&self) -> &str
Returns the name of this symbol as it was originally declared (strips location information and module information)
pub fn definition_name(&self) -> &str
Trait Implementations§
source§impl PartialEq<Symbol> for SymbolRef
 
impl PartialEq<Symbol> for SymbolRef
source§impl PartialEq<SymbolRef> for Symbol
 
impl PartialEq<SymbolRef> for Symbol
source§impl PartialEq for SymbolRef
 
impl PartialEq for SymbolRef
source§impl PartialOrd for SymbolRef
 
impl PartialOrd for SymbolRef
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moresource§impl SerializeState<SeSeed> for SymbolRef
 
impl SerializeState<SeSeed> for SymbolRef
source§fn serialize_state<__S>(
    &self,
    __serializer: __S,
    __seed: &SeSeed
) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,
 
fn serialize_state<__S>(
    &self,
    __serializer: __S,
    __seed: &SeSeed
) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,
Serializes 
self