pub struct AnyNodeTag(/* private fields */);Expand description
Type-erased AST node tag represented as a raw ordinal.
Use this for grammar-agnostic AST introspection.
Implementations§
Trait Implementations§
Source§impl Clone for AnyNodeTag
impl Clone for AnyNodeTag
Source§fn clone(&self) -> AnyNodeTag
fn clone(&self) -> AnyNodeTag
Returns a duplicate 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 AnyNodeTag
impl Debug for AnyNodeTag
Source§impl From<AnyNodeTag> for u32
impl From<AnyNodeTag> for u32
Source§fn from(t: AnyNodeTag) -> u32
fn from(t: AnyNodeTag) -> u32
Converts to this type from the input type.
Source§impl From<NodeTag> for AnyNodeTag
impl From<NodeTag> for AnyNodeTag
Source§fn from(t: NodeTag) -> AnyNodeTag
fn from(t: NodeTag) -> AnyNodeTag
Converts to this type from the input type.
Source§impl Hash for AnyNodeTag
impl Hash for AnyNodeTag
Source§impl PartialEq for AnyNodeTag
impl PartialEq for AnyNodeTag
impl Copy for AnyNodeTag
impl Eq for AnyNodeTag
impl StructuralPartialEq for AnyNodeTag
Auto Trait Implementations§
impl Freeze for AnyNodeTag
impl RefUnwindSafe for AnyNodeTag
impl Send for AnyNodeTag
impl Sync for AnyNodeTag
impl Unpin for AnyNodeTag
impl UnsafeUnpin for AnyNodeTag
impl UnwindSafe for AnyNodeTag
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