Struct gluon_base::symbol::Symbol
source · pub struct Symbol(/* private fields */);
Expand description
A symbol uniquely identifies something regardless of its name and which module it originated from
Implementations§
Methods from Deref<Target = 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<'de> Deserialize<'de> for Symbol
impl<'de> Deserialize<'de> for Symbol
source§fn deserialize<D>(deserializer: D) -> Result<Symbol, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Symbol, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'de, Id, T> DeserializeState<'de, Seed<Id, T>> for Symbol
impl<'de, Id, T> DeserializeState<'de, Seed<Id, T>> for Symbol
source§fn deserialize_state<D>(
seed: &mut Seed<Id, T>,
deserializer: D
) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize_state<D>(
seed: &mut Seed<Id, T>,
deserializer: D
) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserializes
Self
using seed
and the deserializer
source§impl<N> From<SymbolData<N>> for Symbol
impl<N> From<SymbolData<N>> for Symbol
source§fn from(name: SymbolData<N>) -> Symbol
fn from(name: SymbolData<N>) -> Symbol
Converts to this type from the input type.
source§impl Ord for Symbol
impl Ord for Symbol
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 Symbol
impl PartialEq for Symbol
source§impl PartialOrd for Symbol
impl PartialOrd for Symbol
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 Symbol
impl SerializeState<SeSeed> for Symbol
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
impl Eq for Symbol
impl StructuralEq for Symbol
Auto Trait Implementations§
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnwindSafe for Symbol
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more