pub enum Item {
Comment {
text: String,
span: Span,
},
Directive {
key: String,
value: String,
span: Span,
},
HostBlock {
patterns: Vec<String>,
span: Span,
items: Vec<Item>,
},
MatchBlock {
criteria: String,
span: Span,
items: Vec<Item>,
},
Include {
patterns: Vec<String>,
span: Span,
},
}Expand description
Parsed items that form the config AST.
Variants§
Comment
A comment line.
Directive
A standalone directive (at root level or inside a block).
HostBlock
A Host block with patterns and child directives.
MatchBlock
A Match block with its criteria and child directives.
Include
An Include directive with one or more patterns.
Trait Implementations§
impl Eq for Item
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
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