pub struct BorrowedNode<'de> {
pub value: BorrowedNodeValue<'de>,
}Expand description
Spanless YAML document tree that can borrow scalar strings from the input.
Borrowed nodes are an additive retained-output path for callers that keep the source YAML buffer alive. They preserve semantic values, merge-key expansion, tags, and duplicate-key validation from the owning parser, but do not retain source spans or raw scalar spellings.
Fields§
§value: BorrowedNodeValue<'de>Parsed node payload.
Implementations§
Trait Implementations§
Source§impl<'de> Clone for BorrowedNode<'de>
impl<'de> Clone for BorrowedNode<'de>
Source§fn clone(&self) -> BorrowedNode<'de>
fn clone(&self) -> BorrowedNode<'de>
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<'de> Debug for BorrowedNode<'de>
impl<'de> Debug for BorrowedNode<'de>
Source§impl From<BorrowedNode<'_>> for Value
impl From<BorrowedNode<'_>> for Value
Source§fn from(node: BorrowedNode<'_>) -> Self
fn from(node: BorrowedNode<'_>) -> Self
Converts to this type from the input type.
Source§impl<'de> PartialEq for BorrowedNode<'de>
impl<'de> PartialEq for BorrowedNode<'de>
impl<'de> StructuralPartialEq for BorrowedNode<'de>
Auto Trait Implementations§
impl<'de> Freeze for BorrowedNode<'de>
impl<'de> RefUnwindSafe for BorrowedNode<'de>
impl<'de> Send for BorrowedNode<'de>
impl<'de> Sync for BorrowedNode<'de>
impl<'de> Unpin for BorrowedNode<'de>
impl<'de> UnsafeUnpin for BorrowedNode<'de>
impl<'de> UnwindSafe for BorrowedNode<'de>
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