pub struct SimpleLiteralRef<'value> {
pub value: &'value str,
}
Fields§
§value: &'value str
Implementations§
Source§impl<'value> SimpleLiteralRef<'value>
impl<'value> SimpleLiteralRef<'value>
pub fn new(value: &'value str) -> SimpleLiteralRef<'value>
pub fn is_empty(&self) -> bool
pub fn into_owned(self) -> SimpleLiteral
Trait Implementations§
Source§impl<'value> Clone for SimpleLiteralRef<'value>
impl<'value> Clone for SimpleLiteralRef<'value>
Source§fn clone(&self) -> SimpleLiteralRef<'value>
fn clone(&self) -> SimpleLiteralRef<'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 SimpleLiteralRef<'value>
impl<'value> Debug for SimpleLiteralRef<'value>
Source§impl<'data> From<SimpleLiteralRef<'data>> for TypedValueRef<'data>
impl<'data> From<SimpleLiteralRef<'data>> for TypedValueRef<'data>
Source§fn from(value: SimpleLiteralRef<'data>) -> TypedValueRef<'data>
fn from(value: SimpleLiteralRef<'data>) -> TypedValueRef<'data>
Converts to this type from the input type.
Source§impl<'value> Ord for SimpleLiteralRef<'value>
impl<'value> Ord for SimpleLiteralRef<'value>
Source§fn cmp(&self, other: &SimpleLiteralRef<'value>) -> Ordering
fn cmp(&self, other: &SimpleLiteralRef<'value>) -> 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 SimpleLiteralRef<'value>
impl<'value> PartialEq for SimpleLiteralRef<'value>
Source§impl<'value> PartialOrd for SimpleLiteralRef<'value>
impl<'value> PartialOrd for SimpleLiteralRef<'value>
Source§impl<'a> TryFrom<TypedValueRef<'a>> for SimpleLiteralRef<'a>
impl<'a> TryFrom<TypedValueRef<'a>> for SimpleLiteralRef<'a>
Source§fn try_from(
value: TypedValueRef<'a>,
) -> Result<SimpleLiteralRef<'a>, <SimpleLiteralRef<'a> as TryFrom<TypedValueRef<'a>>>::Error>
fn try_from( value: TypedValueRef<'a>, ) -> Result<SimpleLiteralRef<'a>, <SimpleLiteralRef<'a> as TryFrom<TypedValueRef<'a>>>::Error>
Performs the conversion.
impl<'value> Copy for SimpleLiteralRef<'value>
impl<'value> Eq for SimpleLiteralRef<'value>
impl<'value> StructuralPartialEq for SimpleLiteralRef<'value>
Auto Trait Implementations§
impl<'value> Freeze for SimpleLiteralRef<'value>
impl<'value> RefUnwindSafe for SimpleLiteralRef<'value>
impl<'value> Send for SimpleLiteralRef<'value>
impl<'value> Sync for SimpleLiteralRef<'value>
impl<'value> Unpin for SimpleLiteralRef<'value>
impl<'value> UnwindSafe for SimpleLiteralRef<'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