pub enum Located {
Found {
range: Range<usize>,
},
Missing {
existing_depth: usize,
insert_at: usize,
indent: usize,
},
}Expand description
Outcome of locating a path in the source.
Variants§
Found
The full path resolved to an existing value. The returned range covers the value bytes (block scalar body, mapping content, etc.) — splice in to replace.
Missing
The path resolved up to existing_depth; the
remaining segments need to be created. insert_at
is the byte offset where new content should be
inserted (typically end-of-mapping at that depth).
indent is the column the new key/value must start
at (zero-based byte column of the parent mapping’s
child keys).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Located
impl RefUnwindSafe for Located
impl Send for Located
impl Sync for Located
impl Unpin for Located
impl UnsafeUnpin for Located
impl UnwindSafe for Located
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