pub enum ShaclConstraint {
Show 13 variants
Datatype(ShaclDatatype),
MinLength(u32),
MaxLength(u32),
MinCount(u32),
MaxCount(u32),
In {
count: u8,
values: [u64; 8],
},
DeonticObligate,
DeonticPermit,
DeonticForbid,
DeonticNotExpired {
now_unix: u32,
},
EpistemicKnowledge {
min_certainty: u8,
},
EpistemicBelief {
min_certainty: u8,
},
CommonKnowledge,
}Expand description
Zero-heap SHACL Constraint AST Uses primitive types and FNV-1a hashes to fit within the memory ceiling.
Variants§
Datatype(ShaclDatatype)
MinLength(u32)
MaxLength(u32)
MinCount(u32)
MaxCount(u32)
In
For sh:in, we store up to 8 permitted hashes inline to avoid allocation. If more are needed, it would overflow to a separate memory-mapped buffer.
DeonticObligate
DeonticPermit
DeonticForbid
DeonticNotExpired
EpistemicKnowledge
EpistemicBelief
CommonKnowledge
Trait Implementations§
Source§impl Clone for ShaclConstraint
impl Clone for ShaclConstraint
impl Copy for ShaclConstraint
Source§impl Debug for ShaclConstraint
impl Debug for ShaclConstraint
Source§impl PartialEq for ShaclConstraint
impl PartialEq for ShaclConstraint
impl StructuralPartialEq for ShaclConstraint
Auto Trait Implementations§
impl Freeze for ShaclConstraint
impl RefUnwindSafe for ShaclConstraint
impl Send for ShaclConstraint
impl Sync for ShaclConstraint
impl Unpin for ShaclConstraint
impl UnsafeUnpin for ShaclConstraint
impl UnwindSafe for ShaclConstraint
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<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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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