pub(super) enum YamlString<'a> {
Block(LiteralBlock<'a>),
Text(ScalarText<'a>),
}Expand description
How a string value is written.
Variants§
Block(LiteralBlock<'a>)
Text(ScalarText<'a>)
Implementations§
Source§impl<'a> YamlString<'a>
impl<'a> YamlString<'a>
Sourcepub(super) fn select(text: &'a str, style: StringStyle) -> Self
pub(super) fn select(text: &'a str, style: StringStyle) -> Self
Choose the form for text.
A block is used when the text spans lines or the Literal style asks
for one, and a block can reproduce the text exactly. Everything else
is plain or double quoted.
Auto Trait Implementations§
impl<'a> Freeze for YamlString<'a>
impl<'a> RefUnwindSafe for YamlString<'a>
impl<'a> Send for YamlString<'a>
impl<'a> Sync for YamlString<'a>
impl<'a> Unpin for YamlString<'a>
impl<'a> UnsafeUnpin for YamlString<'a>
impl<'a> UnwindSafe for YamlString<'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