pub enum StringLit {
Single(SingleStringLit),
Double(DoubleStringLit),
}
Expand description
Any string literal, whether single or double quote delimited
Variants§
Single(SingleStringLit)
A single-quoted string literal
Double(DoubleStringLit)
A double-quoted string literal
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StringLit
impl RefUnwindSafe for StringLit
impl Send for StringLit
impl Sync for StringLit
impl Unpin for StringLit
impl UnwindSafe for StringLit
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> 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