pub struct Symbol { /* private fields */ }
Expand description
The text of a fully resolved field name, annotation, or symbol value. If the symbol has known
text (that is: the symbol is not $0
), it will be stored as either a String
or a shared
reference to text in a symbol table.
Implementations§
Trait Implementations§
source§impl Ord for Symbol
impl Ord for Symbol
source§impl PartialEq<Symbol> for &str
impl PartialEq<Symbol> for &str
source§impl PartialEq<Symbol> for String
impl PartialEq<Symbol> for String
source§impl PartialEq<Symbol> for Symbol
impl PartialEq<Symbol> for Symbol
source§impl PartialOrd<Symbol> for Symbol
impl PartialOrd<Symbol> 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 moreimpl Eq for Symbol
impl StructuralEq for Symbol
impl StructuralPartialEq 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
source§impl<V> IntoAnnotatedElement for Vwhere
V: Into<Value>,
impl<V> IntoAnnotatedElement for Vwhere V: Into<Value>,
source§fn with_annotations<I: IntoAnnotations>(self, annotations: I) -> Element
fn with_annotations<I: IntoAnnotations>(self, annotations: I) -> Element
Converts the value into an Element with the specified annotations.