pub struct Symbol(pub String);Expand description
Symbol identifier that uniquely identifies the subject.
A Symbol is a wrapper around a String that represents an identifier.
In gram notation, symbols appear before labels and properties.
§Examples
use pattern_core::Symbol;
let symbol = Symbol("n".to_string());
assert_eq!(symbol.0, "n");Tuple Fields§
§0: StringTrait Implementations§
Source§impl Ord for Symbol
impl Ord for Symbol
Source§impl PartialOrd for Symbol
impl PartialOrd for Symbol
impl Eq for Symbol
impl StructuralPartialEq for Symbol
Auto Trait Implementations§
impl Freeze for Symbol
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnsafeUnpin 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