pub enum Mode {
Default,
StripComments(String),
CommentLines(String),
}Expand description
Processing mode for process.
Variants§
Default
Strip trailing whitespace and collapse blank lines.
StripComments(String)
Same as Mode::Default but also remove comment lines.
A comment line is any line whose first bytes match comment_prefix
(e.g. "#").
CommentLines(String)
Prefix every input line with the comment character.
Non-empty lines that do not start with a tab get comment_prefix + " ";
empty lines and tab-starting lines get just comment_prefix. This
avoids the SP-HT sequence (# \t…) that Git also avoids.
Trait Implementations§
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnsafeUnpin for Mode
impl UnwindSafe for Mode
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