pub struct Scalar<'input> {
pub anchor: Option<Anchor>,
pub tag: Option<Tag>,
pub value: Box<[u8]>,
pub style: ScalarStyle,
pub repr: Option<&'input [u8]>,
}
Expand description
Represents a scalar value in a YAML document.
Fields§
§anchor: Option<Anchor>
The anchor associated with the scalar value.
tag: Option<Tag>
The tag associated with the scalar value.
value: Box<[u8]>
The value of the scalar as a byte slice.
style: ScalarStyle
The style of the scalar value.
repr: Option<&'input [u8]>
The representation of the scalar value as a byte slice.
Trait Implementations§
Auto Trait Implementations§
impl<'input> Freeze for Scalar<'input>
impl<'input> RefUnwindSafe for Scalar<'input>
impl<'input> Send for Scalar<'input>
impl<'input> Sync for Scalar<'input>
impl<'input> Unpin for Scalar<'input>
impl<'input> UnwindSafe for Scalar<'input>
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