pub enum Chomp {
Strip,
Clip,
Keep,
}Expand description
Block scalar chomping mode per YAML 1.2 §8.1.1.2.
Variants§
Strip
- — trailing newlines stripped.
Clip
(default, no indicator) — single trailing newline kept.
Keep
+ — all trailing newlines kept.
Trait Implementations§
impl Copy for Chomp
impl Eq for Chomp
impl StructuralPartialEq for Chomp
Auto Trait Implementations§
impl Freeze for Chomp
impl RefUnwindSafe for Chomp
impl Send for Chomp
impl Sync for Chomp
impl Unpin for Chomp
impl UnsafeUnpin for Chomp
impl UnwindSafe for Chomp
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