pub enum CowRdfLiteral<'a> {
Borrowed(RdfLiteralRef<'a>),
Owned(RdfLiteral),
}Expand description
RDF literal that is either borrowed or owned.
Variants§
Implementations§
Source§impl<'a> CowRdfLiteral<'a>
impl<'a> CowRdfLiteral<'a>
Sourcepub fn into_owned(self) -> RdfLiteral
pub fn into_owned(self) -> RdfLiteral
Clones this literal into an owned one.
Sourcepub fn as_literal_ref(&self) -> RdfLiteralRef<'_>
pub fn as_literal_ref(&self) -> RdfLiteralRef<'_>
Borrows this literal.
Auto Trait Implementations§
impl<'a> !Freeze for CowRdfLiteral<'a>
impl<'a> !Send for CowRdfLiteral<'a>
impl<'a> !Sync for CowRdfLiteral<'a>
impl<'a> RefUnwindSafe for CowRdfLiteral<'a>
impl<'a> Unpin for CowRdfLiteral<'a>
impl<'a> UnsafeUnpin for CowRdfLiteral<'a>
impl<'a> UnwindSafe for CowRdfLiteral<'a>
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.