pub enum ObjectRef<'a, T, B> {
Object(&'a Object<T, B>),
Node(&'a Node<T, B>),
Ref(&'a Id<T, B>),
}Expand description
Object of a quad drawn from a JSON-LD document.
Variants§
Object(&'a Object<T, B>)
A JSON-LD object.
Node(&'a Node<T, B>)
A node object.
Ref(&'a Id<T, B>)
An object given by a node identifier.
Implementations§
Source§impl<'a, T: Clone, B: Clone> ObjectRef<'a, T, B>
impl<'a, T: Clone, B: Clone> ObjectRef<'a, T, B>
Sourcepub fn rdf_value_with<V, G: LocalGenerator>(
&self,
vocabulary: &mut V,
generator: &mut G,
rdf_direction: Option<RdfDirection>,
) -> Option<CompoundValue<'a, T, B, V::Literal>>where
V: Vocabulary<Iri = T, BlankId = B> + VocabularyMut,
pub fn rdf_value_with<V, G: LocalGenerator>(
&self,
vocabulary: &mut V,
generator: &mut G,
rdf_direction: Option<RdfDirection>,
) -> Option<CompoundValue<'a, T, B, V::Literal>>where
V: Vocabulary<Iri = T, BlankId = B> + VocabularyMut,
Converts this object into an RDF value, emitting any triples it needs through the given vocabulary and generator.
Auto Trait Implementations§
impl<'a, T, B> Freeze for ObjectRef<'a, T, B>
impl<'a, T, B> RefUnwindSafe for ObjectRef<'a, T, B>
impl<'a, T, B> Send for ObjectRef<'a, T, B>
impl<'a, T, B> Sync for ObjectRef<'a, T, B>
impl<'a, T, B> Unpin for ObjectRef<'a, T, B>
impl<'a, T, B> UnsafeUnpin for ObjectRef<'a, T, B>
impl<'a, T, B> UnwindSafe for ObjectRef<'a, T, B>
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.