pub struct ShaclEngine<'a> {
pub quins: &'a [NQuin],
pub shapes: &'a [CompiledShape],
}Expand description
Engine binding shapes + graph for a validation pass.
Fields§
§quins: &'a [NQuin]§shapes: &'a [CompiledShape]Registry used to resolve sh:node / and / or / not / xone references
(referenced shapes are looked up by their shape_class).
Implementations§
Source§impl<'a> ShaclEngine<'a>
impl<'a> ShaclEngine<'a>
pub fn new(quins: &'a [NQuin], shapes: &'a [CompiledShape]) -> Self
Sourcepub fn validate(&self, resolve: Resolver<'_>) -> ValidationReport
pub fn validate(&self, resolve: Resolver<'_>) -> ValidationReport
Validate every shape against its target nodes.
Sourcepub fn validate_focus(
&self,
focus: u64,
shape: &CompiledShape,
resolve: Resolver<'_>,
out: &mut Vec<ValidationResult>,
)
pub fn validate_focus( &self, focus: u64, shape: &CompiledShape, resolve: Resolver<'_>, out: &mut Vec<ValidationResult>, )
Validate a single focus node against one shape.
Auto Trait Implementations§
impl<'a> Freeze for ShaclEngine<'a>
impl<'a> RefUnwindSafe for ShaclEngine<'a>
impl<'a> Send for ShaclEngine<'a>
impl<'a> Sync for ShaclEngine<'a>
impl<'a> Unpin for ShaclEngine<'a>
impl<'a> UnsafeUnpin for ShaclEngine<'a>
impl<'a> UnwindSafe for ShaclEngine<'a>
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more