pub enum Resource<V: Vocabulary = ()> {
Anonymous(usize),
Term(Term<Id<<V as IriVocabulary>::Iri, <V as BlankIdVocabulary>::BlankId>, <V as LiteralVocabulary>::Literal>),
}
Variants§
Anonymous(usize)
Term(Term<Id<<V as IriVocabulary>::Iri, <V as BlankIdVocabulary>::BlankId>, <V as LiteralVocabulary>::Literal>)
Implementations§
Source§impl<V: Vocabulary> Resource<V>
impl<V: Vocabulary> Resource<V>
pub fn as_term( &self, ) -> Option<&Term<Id<<V as IriVocabulary>::Iri, <V as BlankIdVocabulary>::BlankId>, <V as LiteralVocabulary>::Literal>>
Trait Implementations§
Source§impl<V: Vocabulary> Clone for Resource<V>
impl<V: Vocabulary> Clone for Resource<V>
Source§impl<V: Vocabulary> Debug for Resource<V>
impl<V: Vocabulary> Debug for Resource<V>
Source§impl<V: Vocabulary> From<Term<Id<<V as IriVocabulary>::Iri, <V as BlankIdVocabulary>::BlankId>, <V as LiteralVocabulary>::Literal>> for Resource<V>
impl<V: Vocabulary> From<Term<Id<<V as IriVocabulary>::Iri, <V as BlankIdVocabulary>::BlankId>, <V as LiteralVocabulary>::Literal>> for Resource<V>
Source§fn from(
value: Term<Id<<V as IriVocabulary>::Iri, <V as BlankIdVocabulary>::BlankId>, <V as LiteralVocabulary>::Literal>,
) -> Self
fn from( value: Term<Id<<V as IriVocabulary>::Iri, <V as BlankIdVocabulary>::BlankId>, <V as LiteralVocabulary>::Literal>, ) -> Self
Converts to this type from the input type.
Source§impl<V: Vocabulary> Hash for Resource<V>
impl<V: Vocabulary> Hash for Resource<V>
Source§impl<V: Vocabulary> Ord for Resource<V>
impl<V: Vocabulary> Ord for Resource<V>
Source§impl<V: Vocabulary> PartialEq for Resource<V>
impl<V: Vocabulary> PartialEq for Resource<V>
Source§impl<V: Vocabulary> PartialOrd for Resource<V>
impl<V: Vocabulary> PartialOrd for Resource<V>
impl<V: Vocabulary> Copy for Resource<V>
impl<V: Vocabulary> Eq for Resource<V>
Auto Trait Implementations§
impl<V> Freeze for Resource<V>where
<V as LiteralVocabulary>::Literal: Freeze,
<V as BlankIdVocabulary>::BlankId: Freeze,
<V as IriVocabulary>::Iri: Freeze,
impl<V> RefUnwindSafe for Resource<V>where
<V as LiteralVocabulary>::Literal: RefUnwindSafe,
<V as BlankIdVocabulary>::BlankId: RefUnwindSafe,
<V as IriVocabulary>::Iri: RefUnwindSafe,
impl<V> Send for Resource<V>where
<V as LiteralVocabulary>::Literal: Send,
<V as BlankIdVocabulary>::BlankId: Send,
<V as IriVocabulary>::Iri: Send,
impl<V> Sync for Resource<V>where
<V as LiteralVocabulary>::Literal: Sync,
<V as BlankIdVocabulary>::BlankId: Sync,
<V as IriVocabulary>::Iri: Sync,
impl<V> Unpin for Resource<V>where
<V as LiteralVocabulary>::Literal: Unpin,
<V as BlankIdVocabulary>::BlankId: Unpin,
<V as IriVocabulary>::Iri: Unpin,
impl<V> UnwindSafe for Resource<V>where
<V as LiteralVocabulary>::Literal: UnwindSafe,
<V as BlankIdVocabulary>::BlankId: UnwindSafe,
<V as IriVocabulary>::Iri: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.