pub struct Spans(/* private fields */);Expand description
Each written field’s place in the file, by its path.
Implementations§
Source§impl Spans
impl Spans
Sourcepub fn of(yaml: &str) -> Spans
pub fn of(yaml: &str) -> Spans
The places of every key and list item in yaml. A document the parser refuses gives the
places read before the refusal (the YAML error itself carries its own).
Trait Implementations§
impl Eq for Spans
impl StructuralPartialEq for Spans
Auto Trait Implementations§
impl Freeze for Spans
impl RefUnwindSafe for Spans
impl Send for Spans
impl Sync for Spans
impl Unpin for Spans
impl UnsafeUnpin for Spans
impl UnwindSafe for Spans
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.