Enum nondestructive::yaml::Block
source · #[non_exhaustive]pub enum Block {
Literal(Chomp),
Folded(Chomp),
}
Expand description
The kind of a block.
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.
Literal(Chomp)
The literal |
block, with a chomping mode as indicated by Chomp
.
|
Hello
World
Folded(Chomp)
The folded >
block, with a chomping mode as indicated by Chomp
.
Line breaks are converted into a single ' '
space.
>
Hello
World
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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