pub struct CowLiteral<'a> {
pub value: Cow<'a, str>,
pub type_: CowLiteralType<'a>,
}Expand description
RDF Literal reference.
Fields§
§value: Cow<'a, str>Literal value.
type_: CowLiteralType<'a>Literal type.
Implementations§
Source§impl<'a> CowLiteral<'a>
impl<'a> CowLiteral<'a>
pub fn new( value: impl Into<Cow<'a, str>>, type_: impl Into<CowLiteralType<'a>>, ) -> Self
pub fn as_ref(&self) -> LiteralRef<'_>
pub fn into_owned(self) -> Literal
Trait Implementations§
Source§impl<'a> Clone for CowLiteral<'a>
impl<'a> Clone for CowLiteral<'a>
Source§impl<'a> Debug for CowLiteral<'a>
impl<'a> Debug for CowLiteral<'a>
impl<'a> Eq for CowLiteral<'a>
Source§impl<'a> From<&'a Literal> for CowLiteral<'a>
impl<'a> From<&'a Literal> for CowLiteral<'a>
Source§impl<'a> Hash for CowLiteral<'a>
impl<'a> Hash for CowLiteral<'a>
impl IsObject for CowLiteral<'_>
Source§impl<'a> Ord for CowLiteral<'a>
impl<'a> Ord for CowLiteral<'a>
Source§fn cmp(&self, other: &CowLiteral<'a>) -> Ordering
fn cmp(&self, other: &CowLiteral<'a>) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq for CowLiteral<'a>
impl<'a> PartialEq for CowLiteral<'a>
Source§impl<'a> PartialOrd for CowLiteral<'a>
impl<'a> PartialOrd for CowLiteral<'a>
Source§impl<'a> Serialize for CowLiteral<'a>
impl<'a> Serialize for CowLiteral<'a>
impl<'a> StructuralPartialEq for CowLiteral<'a>
Auto Trait Implementations§
impl<'a> Freeze for CowLiteral<'a>
impl<'a> RefUnwindSafe for CowLiteral<'a>
impl<'a> Send for CowLiteral<'a>
impl<'a> Sync for CowLiteral<'a>
impl<'a> Unpin for CowLiteral<'a>
impl<'a> UnsafeUnpin for CowLiteral<'a>
impl<'a> UnwindSafe for CowLiteral<'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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.