pub enum CowRdfTerm<'a> {
Borrowed(BorrowedRdfTerm<'a>),
Owned(OwnedRdfTerm),
}Expand description
RDF term that is either borrowed or owned.
Variants§
Implementations§
Source§impl<'a> CowRdfTerm<'a>
impl<'a> CowRdfTerm<'a>
Sourcepub fn from_str(value: &'a str, ty: Iri<&'a str>) -> Self
pub fn from_str(value: &'a str, ty: Iri<&'a str>) -> Self
Creates a borrowed literal term from a lexical value and its datatype.
Sourcepub fn into_owned(self) -> OwnedRdfTerm
pub fn into_owned(self) -> OwnedRdfTerm
Clones this term into an owned one.
Trait Implementations§
Source§impl<'a> Clone for CowRdfTerm<'a>
impl<'a> Clone for CowRdfTerm<'a>
Source§fn clone(&self) -> CowRdfTerm<'a>
fn clone(&self) -> CowRdfTerm<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> !Freeze for CowRdfTerm<'a>
impl<'a> !Send for CowRdfTerm<'a>
impl<'a> !Sync for CowRdfTerm<'a>
impl<'a> RefUnwindSafe for CowRdfTerm<'a>
impl<'a> Unpin for CowRdfTerm<'a>
impl<'a> UnsafeUnpin for CowRdfTerm<'a>
impl<'a> UnwindSafe for CowRdfTerm<'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.