pub enum RdfLiteralRef<'a> {
Any(&'a str, LiteralTypeRef<'a>),
Xsd(ValueRef<'a>),
Json(&'a Value),
}Expand description
Borrowed RDF literal, kept in its most specific known form.
Variants§
Any(&'a str, LiteralTypeRef<'a>)
Literal held as a lexical value and a datatype.
Xsd(ValueRef<'a>)
Literal held as a parsed XSD value.
Json(&'a Value)
Literal held as a parsed rdf:JSON value.
Implementations§
Source§impl<'a> RdfLiteralRef<'a>
impl<'a> RdfLiteralRef<'a>
Sourcepub fn into_lexical(self) -> Literal
pub fn into_lexical(self) -> Literal
Converts this literal into its lexical form.
Sourcepub fn into_owned(self) -> RdfLiteral
pub fn into_owned(self) -> RdfLiteral
Clones this literal into an owned one.
Trait Implementations§
Source§impl<'a> Clone for RdfLiteralRef<'a>
impl<'a> Clone for RdfLiteralRef<'a>
Source§fn clone(&self) -> RdfLiteralRef<'a>
fn clone(&self) -> RdfLiteralRef<'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 moreimpl<'a> Copy for RdfLiteralRef<'a>
Auto Trait Implementations§
impl<'a> !Send for RdfLiteralRef<'a>
impl<'a> !Sync for RdfLiteralRef<'a>
impl<'a> Freeze for RdfLiteralRef<'a>
impl<'a> RefUnwindSafe for RdfLiteralRef<'a>
impl<'a> Unpin for RdfLiteralRef<'a>
impl<'a> UnsafeUnpin for RdfLiteralRef<'a>
impl<'a> UnwindSafe for RdfLiteralRef<'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.