pub struct YamlScalar { /* private fields */ }Expand description
A decoded YAML scalar with its exact spelling and source location.
Implementations§
Source§impl YamlScalar
impl YamlScalar
Sourcepub const fn style(&self) -> YamlScalarStyle
pub const fn style(&self) -> YamlScalarStyle
Returns the scalar style.
Sourcepub const fn span(&self) -> &SourceSpan
pub const fn span(&self) -> &SourceSpan
Returns the exact source span.
Trait Implementations§
Source§impl Clone for YamlScalar
impl Clone for YamlScalar
Source§fn clone(&self) -> YamlScalar
fn clone(&self) -> YamlScalar
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for YamlScalar
impl Debug for YamlScalar
impl Eq for YamlScalar
Source§impl PartialEq for YamlScalar
impl PartialEq for YamlScalar
impl StructuralPartialEq for YamlScalar
Auto Trait Implementations§
impl Freeze for YamlScalar
impl RefUnwindSafe for YamlScalar
impl Send for YamlScalar
impl Sync for YamlScalar
impl Unpin for YamlScalar
impl UnsafeUnpin for YamlScalar
impl UnwindSafe for YamlScalar
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