pub struct SchemaLocations {
pub document: SourceRange,
pub nodes: BTreeMap<SchemaNode, SourceRange>,
}Expand description
Side-car locations for nodes in a successfully built Schema.
Node addresses follow the structure of the normalized schema rather than using rule ids, which are optional and only locally unique.
Fields§
§document: SourceRangeThe range covering the complete primary Outlint schema document.
nodes: BTreeMap<SchemaNode, SourceRange>Source ranges for semantic nodes needed by validation diagnostics.
Trait Implementations§
Source§impl Clone for SchemaLocations
impl Clone for SchemaLocations
Source§fn clone(&self) -> SchemaLocations
fn clone(&self) -> SchemaLocations
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 SchemaLocations
impl Debug for SchemaLocations
impl Eq for SchemaLocations
Source§impl PartialEq for SchemaLocations
impl PartialEq for SchemaLocations
impl StructuralPartialEq for SchemaLocations
Auto Trait Implementations§
impl Freeze for SchemaLocations
impl RefUnwindSafe for SchemaLocations
impl Send for SchemaLocations
impl Sync for SchemaLocations
impl Unpin for SchemaLocations
impl UnsafeUnpin for SchemaLocations
impl UnwindSafe for SchemaLocations
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.