pub struct YamlMapping { /* private fields */ }Expand description
A lossless, insertion-ordered YAML mapping.
Implementations§
Source§impl YamlMapping
impl YamlMapping
Sourcepub fn entries(&self) -> &[YamlMappingEntry]
pub fn entries(&self) -> &[YamlMappingEntry]
Returns entries in source order.
Sourcepub const fn style(&self) -> YamlCollectionStyle
pub const fn style(&self) -> YamlCollectionStyle
Returns the collection style.
Sourcepub const fn span(&self) -> &SourceSpan
pub const fn span(&self) -> &SourceSpan
Returns the collection source span.
Trait Implementations§
Source§impl Clone for YamlMapping
impl Clone for YamlMapping
Source§impl Debug for YamlMapping
impl Debug for YamlMapping
impl Eq for YamlMapping
Source§impl PartialEq for YamlMapping
impl PartialEq for YamlMapping
impl StructuralPartialEq for YamlMapping
Auto Trait Implementations§
impl Freeze for YamlMapping
impl RefUnwindSafe for YamlMapping
impl Send for YamlMapping
impl Sync for YamlMapping
impl Unpin for YamlMapping
impl UnsafeUnpin for YamlMapping
impl UnwindSafe for YamlMapping
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