pub enum PrettyNodeRole {
Syntax,
Category,
Token,
Delimiter,
Collection,
Absent,
}Expand description
The semantic role of a PrettyNode.
This is presentation metadata rather than a replacement for the generated typed syntax hierarchy. It lets external renderers distinguish structural nodes, lexical leaves, delimiter boundaries, collection fragments, and absent optional values.
Variants§
Syntax
A concrete node from the generated typed syntax hierarchy.
Category
A semantic category through which visitor specialization dispatches.
Token
A lexical token or virtual syntax leaf.
Delimiter
One boundary projected from a paired delimiter atom.
Collection
A transparent syntax container such as a list or delimiter pair.
Absent
An optional syntax value that is not present.
Trait Implementations§
Source§impl Clone for PrettyNodeRole
impl Clone for PrettyNodeRole
impl Copy for PrettyNodeRole
Source§impl Debug for PrettyNodeRole
impl Debug for PrettyNodeRole
impl Eq for PrettyNodeRole
Source§impl PartialEq for PrettyNodeRole
impl PartialEq for PrettyNodeRole
impl StructuralPartialEq for PrettyNodeRole
Auto Trait Implementations§
impl Freeze for PrettyNodeRole
impl RefUnwindSafe for PrettyNodeRole
impl Send for PrettyNodeRole
impl Sync for PrettyNodeRole
impl Unpin for PrettyNodeRole
impl UnsafeUnpin for PrettyNodeRole
impl UnwindSafe for PrettyNodeRole
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