pub struct RuleDef {
pub generic_parms: Vec<String>,
pub node: Node,
}
Expand description
The definition of a CDDL rule.
Each rule has a name, some (optional) generic parameters, and a
definition Node
.
Fields§
§generic_parms: Vec<String>
Optional generic parameters.
node: Node
The Node representing the rule definition.
Trait Implementations§
source§impl PartialEq for RuleDef
impl PartialEq for RuleDef
impl StructuralPartialEq for RuleDef
Auto Trait Implementations§
impl RefUnwindSafe for RuleDef
impl Send for RuleDef
impl Sync for RuleDef
impl Unpin for RuleDef
impl UnwindSafe for RuleDef
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