pub struct RdfLiteral<M, T = Iri<M>> {
pub value: (String, M),
pub type_: (LiteralType<T>, M),
}
Expand description
Replacment for rdf_types::Literal
Fields§
§value: (String, M)
§type_: (LiteralType<T>, M)
Implementations§
Source§impl<M, T> RdfLiteral<M, T>
impl<M, T> RdfLiteral<M, T>
pub fn new(value: (String, M), type_: (LiteralType<T>, M)) -> Self
Trait Implementations§
Source§impl<M: Clone, T: Clone> Clone for RdfLiteral<M, T>
impl<M: Clone, T: Clone> Clone for RdfLiteral<M, T>
Source§fn clone(&self) -> RdfLiteral<M, T>
fn clone(&self) -> RdfLiteral<M, T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<M, T> From<RdfLiteral<M, T>> for Literal<T>
impl<M, T> From<RdfLiteral<M, T>> for Literal<T>
Source§fn from(value: RdfLiteral<M, T>) -> Self
fn from(value: RdfLiteral<M, T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<M, T> Freeze for RdfLiteral<M, T>
impl<M, T> RefUnwindSafe for RdfLiteral<M, T>where
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<M, T> Send for RdfLiteral<M, T>
impl<M, T> Sync for RdfLiteral<M, T>
impl<M, T> Unpin for RdfLiteral<M, T>
impl<M, T> UnwindSafe for RdfLiteral<M, T>where
M: UnwindSafe,
T: UnwindSafe,
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