#[non_exhaustive]pub enum Chomping {
Clip,
Strip,
Keep,
}Expand description
How a block scalar handles its final line break and trailing empty lines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Clip
No sign was written: preserve the final line break, but not trailing empty lines.
Strip
A - was written: remove the final line break and trailing empty lines.
Keep
A + was written: preserve the final line break and trailing empty lines.
Trait Implementations§
impl Copy for Chomping
impl Eq for Chomping
Source§impl Ord for Chomping
impl Ord for Chomping
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Chomping
impl PartialOrd for Chomping
impl StructuralPartialEq for Chomping
Auto Trait Implementations§
impl Forget for Chomping
impl Freeze for Chomping
impl Move for Chomping
impl RefUnwindSafe for Chomping
impl Send for Chomping
impl Sync for Chomping
impl Unpin for Chomping
impl UnsafeUnpin for Chomping
impl UnwindSafe for Chomping
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