pub enum CowRdfLiteral<'a, V: IriVocabulary = ()> {
Borrowed(RdfLiteralRef<'a, V>),
Owned(RdfLiteral<V>),
}
Variants§
Borrowed(RdfLiteralRef<'a, V>)
Owned(RdfLiteral<V>)
Implementations§
Source§impl<V: IriVocabulary> CowRdfLiteral<'_, V>
impl<V: IriVocabulary> CowRdfLiteral<'_, V>
pub fn into_owned(self) -> RdfLiteral<V>
pub fn as_literal_ref(&self) -> RdfLiteralRef<'_, V>
Auto Trait Implementations§
impl<'a, V = ()> !Freeze for CowRdfLiteral<'a, V>
impl<'a, V> RefUnwindSafe for CowRdfLiteral<'a, V>
impl<'a, V = ()> !Send for CowRdfLiteral<'a, V>
impl<'a, V = ()> !Sync for CowRdfLiteral<'a, V>
impl<'a, V> Unpin for CowRdfLiteral<'a, V>
impl<'a, V> UnwindSafe for CowRdfLiteral<'a, V>
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