pub struct StringLiteralRef<'value>(pub &'value str, pub Option<&'value str>);
Expand description
A reference to a string literal in RDF, consisting of a value and an optional language tag.
This struct provides a borrowed view of a string literal.
Tuple Fields§
§0: &'value str
§1: Option<&'value str>
Implementations§
Trait Implementations§
Source§impl<'value> Clone for StringLiteralRef<'value>
impl<'value> Clone for StringLiteralRef<'value>
Source§fn clone(&self) -> StringLiteralRef<'value>
fn clone(&self) -> StringLiteralRef<'value>
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<'value> Debug for StringLiteralRef<'value>
impl<'value> Debug for StringLiteralRef<'value>
Source§impl Ord for StringLiteralRef<'_>
impl Ord for StringLiteralRef<'_>
Source§fn cmp(&self, other: &StringLiteralRef<'_>) -> Ordering
fn cmp(&self, other: &StringLiteralRef<'_>) -> Ordering
1.21.0 · 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<'value> PartialEq for StringLiteralRef<'value>
impl<'value> PartialEq for StringLiteralRef<'value>
Source§impl PartialOrd for StringLiteralRef<'_>
impl PartialOrd for StringLiteralRef<'_>
Source§impl<'a> TryFrom<TypedValueRef<'a>> for StringLiteralRef<'a>
impl<'a> TryFrom<TypedValueRef<'a>> for StringLiteralRef<'a>
Source§fn try_from(
value: TypedValueRef<'a>,
) -> Result<StringLiteralRef<'a>, <StringLiteralRef<'a> as TryFrom<TypedValueRef<'a>>>::Error>
fn try_from( value: TypedValueRef<'a>, ) -> Result<StringLiteralRef<'a>, <StringLiteralRef<'a> as TryFrom<TypedValueRef<'a>>>::Error>
Performs the conversion.
impl<'value> Copy for StringLiteralRef<'value>
impl<'value> Eq for StringLiteralRef<'value>
impl<'value> StructuralPartialEq for StringLiteralRef<'value>
Auto Trait Implementations§
impl<'value> Freeze for StringLiteralRef<'value>
impl<'value> RefUnwindSafe for StringLiteralRef<'value>
impl<'value> Send for StringLiteralRef<'value>
impl<'value> Sync for StringLiteralRef<'value>
impl<'value> Unpin for StringLiteralRef<'value>
impl<'value> UnwindSafe for StringLiteralRef<'value>
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§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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more