pub struct QuotedData<'i>(pub &'i str);
Expand description
Strings and other data in single quotes.
Tuple Fields§
§0: &'i str
Implementations§
Trait Implementations§
Source§impl<'i> Clone for QuotedData<'i>
impl<'i> Clone for QuotedData<'i>
Source§fn clone(&self) -> QuotedData<'i>
fn clone(&self) -> QuotedData<'i>
Returns a copy 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<'i> Debug for QuotedData<'i>
impl<'i> Debug for QuotedData<'i>
Source§impl Display for QuotedData<'_>
impl Display for QuotedData<'_>
Source§impl<'i> From<&'i str> for QuotedData<'i>
impl<'i> From<&'i str> for QuotedData<'i>
Source§fn from(value: &'i str) -> QuotedData<'i>
fn from(value: &'i str) -> QuotedData<'i>
Converts to this type from the input type.
Source§impl<'i> Ord for QuotedData<'i>
impl<'i> Ord for QuotedData<'i>
Source§fn cmp(&self, other: &QuotedData<'i>) -> Ordering
fn cmp(&self, other: &QuotedData<'i>) -> 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<'i> PartialEq for QuotedData<'i>
impl<'i> PartialEq for QuotedData<'i>
Source§impl<'i> PartialOrd for QuotedData<'i>
impl<'i> PartialOrd for QuotedData<'i>
impl<'i> Copy for QuotedData<'i>
impl<'i> Eq for QuotedData<'i>
impl<'i> StructuralPartialEq for QuotedData<'i>
Auto Trait Implementations§
impl<'i> Freeze for QuotedData<'i>
impl<'i> RefUnwindSafe for QuotedData<'i>
impl<'i> Send for QuotedData<'i>
impl<'i> Sync for QuotedData<'i>
impl<'i> Unpin for QuotedData<'i>
impl<'i> UnwindSafe for QuotedData<'i>
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<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