pub enum ContextIris {
Subject,
Predicate {
subject: Option<Box<IriBuf>>,
},
Object {
subject: Option<Box<IriBuf>>,
predicate: Option<Box<IriBuf>>,
},
}Expand description
Error context with its resources resolved into IRIs.
The IRIs are boxed because this type is carried by every
FromLinkedDataError variant, and therefore sits in the Err slot of
every deserialization Result. An inline IriBuf is 56 bytes, which
would make the error — and so every Result returned on the success path
too — several times larger than the values being deserialized.
Variants§
Subject
The value is a subject.
Predicate
The value is a predicate of the given subject.
Object
The value is an object of the given subject and predicate.
Trait Implementations§
Source§impl Clone for ContextIris
impl Clone for ContextIris
Source§fn clone(&self) -> ContextIris
fn clone(&self) -> ContextIris
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 moreAuto Trait Implementations§
impl Freeze for ContextIris
impl RefUnwindSafe for ContextIris
impl Send for ContextIris
impl Sync for ContextIris
impl Unpin for ContextIris
impl UnsafeUnpin for ContextIris
impl UnwindSafe for ContextIris
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Views this value as an
Unordered reference.