pub struct Style {
pub quote_style: Option<QuoteStyle>,
pub indent_style: Option<IndentStyle>,
}Expand description
Style information for YAML values to preserve formatting during round-trips
Fields§
§quote_style: Option<QuoteStyle>Quote style for string values
indent_style: Option<IndentStyle>Indentation style for the document
Implementations§
Source§impl Style
impl Style
Sourcepub const fn with_quote_style(quote_style: QuoteStyle) -> Self
pub const fn with_quote_style(quote_style: QuoteStyle) -> Self
Create style with quote style
Sourcepub const fn with_indent_style(indent_style: IndentStyle) -> Self
pub const fn with_indent_style(indent_style: IndentStyle) -> Self
Create style with indentation style
Sourcepub const fn with_styles(
quote_style: QuoteStyle,
indent_style: IndentStyle,
) -> Self
pub const fn with_styles( quote_style: QuoteStyle, indent_style: IndentStyle, ) -> Self
Create style with both quote and indent styles
Trait Implementations§
impl Eq for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.