pub enum CowRdfTerm<'a, V: Vocabulary> {
Borrowed(RdfTermRef<'a, V>),
Owned(RdfTerm<V>),
}
Variants§
Borrowed(RdfTermRef<'a, V>)
Owned(RdfTerm<V>)
Implementations§
Source§impl<'a, V: Vocabulary> CowRdfTerm<'a, V>
impl<'a, V: Vocabulary> CowRdfTerm<'a, V>
Source§impl<'a, V: Vocabulary> CowRdfTerm<'a, V>
impl<'a, V: Vocabulary> CowRdfTerm<'a, V>
pub fn into_term( self, ) -> Term<Id<CowRef<'a, V::Iri>, CowRef<'a, V::BlankId>>, CowRdfLiteral<'a, V>>
pub fn as_term_ref(&self) -> RdfTermRef<'_, V>
pub fn into_owned(self) -> RdfTerm<V>
Trait Implementations§
Auto Trait Implementations§
impl<'a, V> !Freeze for CowRdfTerm<'a, V>
impl<'a, V> RefUnwindSafe for CowRdfTerm<'a, V>
impl<'a, V> !Send for CowRdfTerm<'a, V>
impl<'a, V> !Sync for CowRdfTerm<'a, V>
impl<'a, V> Unpin for CowRdfTerm<'a, V>
impl<'a, V> UnwindSafe for CowRdfTerm<'a, V>where
<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