pub enum Designator {
Identifier(Symbol),
OperatorSymbol(Latin1String),
Character(u8),
}
Variants§
Implementations§
Source§impl Designator
impl Designator
pub fn into_ref(self) -> WithRef<Designator>
Source§impl Designator
impl Designator
pub fn as_identifier(&self) -> Option<&Symbol>
pub fn expect_identifier(&self) -> &Symbol
Trait Implementations§
Source§impl Clone for Designator
impl Clone for Designator
Source§fn clone(&self) -> Designator
fn clone(&self) -> Designator
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Designator
impl Debug for Designator
Source§impl Display for Designator
impl Display for Designator
Source§impl From<EnumerationLiteral> for Designator
impl From<EnumerationLiteral> for Designator
Source§fn from(other: EnumerationLiteral) -> Designator
fn from(other: EnumerationLiteral) -> Designator
Converts to this type from the input type.
Source§impl HasDesignator for Designator
impl HasDesignator for Designator
fn designator(&self) -> &Designator
Source§impl Hash for Designator
impl Hash for Designator
Source§impl PartialEq for Designator
impl PartialEq for Designator
impl Eq for Designator
impl StructuralPartialEq for Designator
Auto Trait Implementations§
impl Freeze for Designator
impl RefUnwindSafe for Designator
impl Send for Designator
impl Sync for Designator
impl Unpin for Designator
impl UnwindSafe for Designator
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