pub struct StringLiteral<'src> {
pub cooked: String,
pub expand: bool,
pub kind: StringKind,
pub raw: &'src str,
}
Fieldsยง
ยงcooked: String
ยงexpand: bool
ยงkind: StringKind
ยงraw: &'src str
Implementationsยง
Trait Implementationsยง
Sourceยงimpl<'src> Clone for StringLiteral<'src>
impl<'src> Clone for StringLiteral<'src>
Sourceยงfn clone(&self) -> StringLiteral<'src>
fn clone(&self) -> StringLiteral<'src>
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<'src> Debug for StringLiteral<'src>
impl<'src> Debug for StringLiteral<'src>
Sourceยงimpl<'src> Display for StringLiteral<'src>
impl<'src> Display for StringLiteral<'src>
Sourceยงimpl<'src> Ord for StringLiteral<'src>
impl<'src> Ord for StringLiteral<'src>
Sourceยงfn cmp(&self, other: &StringLiteral<'src>) -> Ordering
fn cmp(&self, other: &StringLiteral<'src>) -> 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<'src> PartialEq for StringLiteral<'src>
impl<'src> PartialEq for StringLiteral<'src>
Sourceยงimpl<'src> PartialOrd for StringLiteral<'src>
impl<'src> PartialOrd for StringLiteral<'src>
Sourceยงimpl<'src> Serialize for StringLiteral<'src>
impl<'src> Serialize for StringLiteral<'src>
impl<'src> Eq for StringLiteral<'src>
impl<'src> StructuralPartialEq for StringLiteral<'src>
Auto Trait Implementationsยง
impl<'src> Freeze for StringLiteral<'src>
impl<'src> RefUnwindSafe for StringLiteral<'src>
impl<'src> Send for StringLiteral<'src>
impl<'src> Sync for StringLiteral<'src>
impl<'src> Unpin for StringLiteral<'src>
impl<'src> UnwindSafe for StringLiteral<'src>
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