pub struct SchemaDocumentSet { /* private fields */ }Expand description
A deterministic, identifier-keyed collection of schema documents.
Implementations§
Source§impl SchemaDocumentSet
impl SchemaDocumentSet
Sourcepub fn parse<I, S>(sources: I) -> Result<Self, SchemaDiagnostics>
pub fn parse<I, S>(sources: I) -> Result<Self, SchemaDiagnostics>
Parses documents with default resource ceilings.
Sourcepub fn parse_with_limits<I, S>(
sources: I,
limits: SchemaParseLimits,
) -> Result<Self, SchemaDiagnostics>
pub fn parse_with_limits<I, S>( sources: I, limits: SchemaParseLimits, ) -> Result<Self, SchemaDiagnostics>
Parses documents with explicit per-document and aggregate ceilings.
Sourcepub const fn manifest(&self) -> Option<&SchemaSetManifestDocument>
pub const fn manifest(&self) -> Option<&SchemaSetManifestDocument>
Returns the schema-set manifest retained by file-backed loading, if any.
Sourcepub fn fingerprint(
&self,
) -> Result<SchemaDocumentSetFingerprint, SchemaDiagnostics>
pub fn fingerprint( &self, ) -> Result<SchemaDocumentSetFingerprint, SchemaDiagnostics>
Fingerprints ordered portable document paths and exact source fingerprints.
Sourcepub fn get(&self, id: &DocumentId) -> Option<&SchemaDocument>
pub fn get(&self, id: &DocumentId) -> Option<&SchemaDocument>
Returns a document by stable identifier.
Sourcepub fn iter(
&self,
) -> impl ExactSizeIterator<Item = (&DocumentId, &SchemaDocument)>
pub fn iter( &self, ) -> impl ExactSizeIterator<Item = (&DocumentId, &SchemaDocument)>
Iterates documents in stable identifier order.
Trait Implementations§
Source§impl Clone for SchemaDocumentSet
impl Clone for SchemaDocumentSet
Source§fn clone(&self) -> SchemaDocumentSet
fn clone(&self) -> SchemaDocumentSet
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 SchemaDocumentSet
impl Debug for SchemaDocumentSet
Source§impl Default for SchemaDocumentSet
impl Default for SchemaDocumentSet
Source§fn default() -> SchemaDocumentSet
fn default() -> SchemaDocumentSet
Returns the “default value” for a type. Read more
impl Eq for SchemaDocumentSet
Source§impl PartialEq for SchemaDocumentSet
impl PartialEq for SchemaDocumentSet
impl StructuralPartialEq for SchemaDocumentSet
Auto Trait Implementations§
impl Freeze for SchemaDocumentSet
impl RefUnwindSafe for SchemaDocumentSet
impl Send for SchemaDocumentSet
impl Sync for SchemaDocumentSet
impl Unpin for SchemaDocumentSet
impl UnsafeUnpin for SchemaDocumentSet
impl UnwindSafe for SchemaDocumentSet
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