pub struct Scalar<'a> {
pub tag: Option<String>,
pub value: &'a str,
pub style: ScalarStyle,
}
Expand description
Represents a scalar value in YAML.
Fields§
§tag: Option<String>
Optional tag for the scalar.
value: &'a str
Value of the scalar.
style: ScalarStyle
Style of the scalar.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Scalar<'a>
impl<'a> RefUnwindSafe for Scalar<'a>
impl<'a> Send for Scalar<'a>
impl<'a> Sync for Scalar<'a>
impl<'a> Unpin for Scalar<'a>
impl<'a> UnwindSafe for Scalar<'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