pub enum RdfLiteral {
Any(String, LiteralType),
Xsd(Value),
Json(Value),
}Expand description
Owned RDF literal, kept in its most specific known form.
Variants§
Any(String, LiteralType)
Literal held as a lexical value and a datatype.
Xsd(Value)
Literal held as a parsed XSD value.
Json(Value)
Literal held as a parsed rdf:JSON value.
Implementations§
Source§impl RdfLiteral
impl RdfLiteral
Sourcepub fn into_lexical(self) -> Literal
pub fn into_lexical(self) -> Literal
Converts this literal into its lexical form.
Sourcepub fn as_literal_ref(&self) -> RdfLiteralRef<'_>
pub fn as_literal_ref(&self) -> RdfLiteralRef<'_>
Borrows this literal.
Sourcepub fn embed_into<I: InterpretationMut>(
self,
interpretation: &mut I,
) -> I::Resource
pub fn embed_into<I: InterpretationMut>( self, interpretation: &mut I, ) -> I::Resource
Inserts this literal into interpretation, returning its resource.
Trait Implementations§
Source§impl Clone for RdfLiteral
impl Clone for RdfLiteral
Source§fn clone(&self) -> RdfLiteral
fn clone(&self) -> RdfLiteral
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 moreSource§impl Debug for RdfLiteral
impl Debug for RdfLiteral
Auto Trait Implementations§
impl !Freeze for RdfLiteral
impl !Sync for RdfLiteral
impl RefUnwindSafe for RdfLiteral
impl Send for RdfLiteral
impl Unpin for RdfLiteral
impl UnsafeUnpin for RdfLiteral
impl UnwindSafe for RdfLiteral
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.