pub enum Context<'a, I: Interpretation> {
Subject,
Predicate {
subject: ResourceOrIriRef<'a, I>,
},
Object {
subject: ResourceOrIriRef<'a, I>,
predicate: ResourceOrIriRef<'a, I>,
},
}
Variants§
Implementations§
Source§impl<'a, I: Interpretation> Context<'a, I>
impl<'a, I: Interpretation> Context<'a, I>
pub fn with_subject(self, subject: &'a I::Resource) -> Self
pub fn with_predicate(self, predicate: &'a I::Resource) -> Self
pub fn with_predicate_iri(self, predicate: &'a Iri) -> Self
pub fn with_anonymous_predicate(self) -> Self
pub fn into_iris<V>(self, vocabulary: &V, interpretation: &I) -> ContextIris
Trait Implementations§
Source§impl<'a, I: Interpretation> Clone for Context<'a, I>where
ResourceOrIriRef<'a, I>: Copy,
impl<'a, I: Interpretation> Clone for Context<'a, I>where
ResourceOrIriRef<'a, I>: Copy,
Source§impl<'a, I: Interpretation> Debug for Context<'a, I>
impl<'a, I: Interpretation> Debug for Context<'a, I>
Source§impl<I: Interpretation> Default for Context<'_, I>
impl<I: Interpretation> Default for Context<'_, I>
impl<'a, I: Interpretation> Copy for Context<'a, I>where
ResourceOrIriRef<'a, I>: Copy,
Auto Trait Implementations§
impl<'a, I> Freeze for Context<'a, I>
impl<'a, I> RefUnwindSafe for Context<'a, I>
impl<'a, I> Send for Context<'a, I>
impl<'a, I> Sync for Context<'a, I>
impl<'a, I> Unpin for Context<'a, I>
impl<'a, I> UnwindSafe for Context<'a, I>
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