pub struct CddlSlice {
pub rules: Vec<(Rule, String)>,
}
Expand description
A CDDL specification, containing multiple rule syntax trees.
This is the output from the parser for a given CDDL text input.
CddlSlice is exactly the same as Cddl
except that it also
preserves a copy of the string used to compose that rule.
Fields§
§rules: Vec<(Rule, String)>
Rules and their syntax trees.
Trait Implementations§
source§impl PartialEq for CddlSlice
impl PartialEq for CddlSlice
impl StructuralPartialEq for CddlSlice
Auto Trait Implementations§
impl RefUnwindSafe for CddlSlice
impl Send for CddlSlice
impl Sync for CddlSlice
impl Unpin for CddlSlice
impl UnwindSafe for CddlSlice
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