pub enum Statement<'a> {
Ignored,
Set(Vec<SetProperty<'a>>),
Unset(Vec<UnsetProperty>),
Path {
path: PathBuf,
properties: Vec<PathProperty<'a>>,
},
}
Expand description
Each line represents a line in a .MTREE file.
Variants§
Ignored
All lines that’re irrelevant and don’t contribute anything to the actual mtree file.
Includes the following:
- Empty lines
- Lines that start with
#
(e.g.#mtree
line and comments)
Set(Vec<SetProperty<'a>>)
A /set
command followed by some properties.
Unset(Vec<UnsetProperty>)
A /unset
command followed by some properties.
Path
Any path statement followed by some properties.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Statement<'a>
impl<'a> RefUnwindSafe for Statement<'a>
impl<'a> Send for Statement<'a>
impl<'a> Sync for Statement<'a>
impl<'a> Unpin for Statement<'a>
impl<'a> UnwindSafe for Statement<'a>
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