pub struct NodeData {
pub name: String,
pub rule: Rule,
}
Expand description
Data about a node.
Fields§
§name: String
The name of the node.
In the rule A = 'b' | 'c'
, this is "A"
.
rule: Rule
The rule for this node.
In the rule A = 'b' | 'c'
, this represents 'b' | 'c'
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeData
impl RefUnwindSafe for NodeData
impl Send for NodeData
impl Sync for NodeData
impl Unpin for NodeData
impl UnwindSafe for NodeData
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