pub struct CompiledSchema { /* private fields */ }Expand description
A parsed schema after composition/simplification (RELAX NG spec §4):
include/div/combine resolved, nested grammars flattened, every
pattern reduced to the handful of primitive forms the validator
understands. Produced by simplify (or crate::Schema::compile,
which also parses); pass it to crate::validate (or
crate::Schema::validate) to check documents against it.
Implementations§
Source§impl CompiledSchema
impl CompiledSchema
Sourcepub fn definition_count(&self) -> usize
pub fn definition_count(&self) -> usize
How many named defines survived simplification — mainly useful
for diagnostics/tests, not something normal validation needs.
Trait Implementations§
Source§impl Clone for CompiledSchema
impl Clone for CompiledSchema
Auto Trait Implementations§
impl Freeze for CompiledSchema
impl RefUnwindSafe for CompiledSchema
impl Send for CompiledSchema
impl Sync for CompiledSchema
impl Unpin for CompiledSchema
impl UnsafeUnpin for CompiledSchema
impl UnwindSafe for CompiledSchema
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