pub enum ResourceInterpretation<'a, I: Interpretation, V: Vocabulary> {
Interpreted(&'a I::Resource),
Uninterpreted(Option<CowRdfTerm<'a, V>>),
}
Expand description
Resource interpretation.
Variants§
Interpreted(&'a I::Resource)
Interpreted resource.
Uninterpreted(Option<CowRdfTerm<'a, V>>)
Uninterpreted resource with the given optional lexical representation.
It can be used to give an actual interpretation to the resource, bound to its lexical representation.
Implementations§
Source§impl<'a, I: Interpretation, V: Vocabulary> ResourceInterpretation<'a, I, V>
impl<'a, I: Interpretation, V: Vocabulary> ResourceInterpretation<'a, I, V>
pub fn as_interpreted(&self) -> Option<&'a I::Resource>
pub fn as_uninterpreted(&self) -> Option<&CowRdfTerm<'a, V>>
pub fn into_lexical_representation( self, vocabulary: &'a V, interpretation: &'a I, ) -> Option<CowRdfTerm<'a, V>>
Trait Implementations§
Auto Trait Implementations§
impl<'a, I, V> !Freeze for ResourceInterpretation<'a, I, V>
impl<'a, I, V> RefUnwindSafe for ResourceInterpretation<'a, I, V>where
<I as Interpretation>::Resource: RefUnwindSafe,
<V as BlankIdVocabulary>::BlankId: RefUnwindSafe,
<V as IriVocabulary>::Iri: RefUnwindSafe,
impl<'a, I, V> !Send for ResourceInterpretation<'a, I, V>
impl<'a, I, V> !Sync for ResourceInterpretation<'a, I, V>
impl<'a, I, V> Unpin for ResourceInterpretation<'a, I, V>
impl<'a, I, V> UnwindSafe for ResourceInterpretation<'a, I, V>where
<I as Interpretation>::Resource: RefUnwindSafe,
<V as BlankIdVocabulary>::BlankId: UnwindSafe + RefUnwindSafe,
<V as IriVocabulary>::Iri: UnwindSafe + RefUnwindSafe,
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