pub struct FrontmatterAnchors(/* private fields */);Expand description
Positions of the entries of a frontmatter mapping, keyed by JSON Pointer.
Pointers are spelled per RFC 6901, matching the pointers a JSON Schema validator reports for a rejected value, so a diagnostic carrying such a pointer can be anchored to the source it names.
A mapping member is recorded at its key, because key: value is the
construct the pointer names as it is spelled in the document; a sequence
element, having no key, is recorded at the element itself. The mapping as a
whole — the root pointer "" — is deliberately absent: its extent is the
whole block, which already has a location of its own.
Implementations§
Trait Implementations§
Source§impl Clone for FrontmatterAnchors
impl Clone for FrontmatterAnchors
Source§fn clone(&self) -> FrontmatterAnchors
fn clone(&self) -> FrontmatterAnchors
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 FrontmatterAnchors
impl Debug for FrontmatterAnchors
Source§impl Default for FrontmatterAnchors
impl Default for FrontmatterAnchors
Source§fn default() -> FrontmatterAnchors
fn default() -> FrontmatterAnchors
Returns the “default value” for a type. Read more
impl Eq for FrontmatterAnchors
Source§impl PartialEq for FrontmatterAnchors
impl PartialEq for FrontmatterAnchors
impl StructuralPartialEq for FrontmatterAnchors
Auto Trait Implementations§
impl Freeze for FrontmatterAnchors
impl RefUnwindSafe for FrontmatterAnchors
impl Send for FrontmatterAnchors
impl Sync for FrontmatterAnchors
impl Unpin for FrontmatterAnchors
impl UnsafeUnpin for FrontmatterAnchors
impl UnwindSafe for FrontmatterAnchors
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.