pub struct StrLit {
pub kind: StrKind,
pub values: Vec<u32>,
pub text: String,
}Expand description
A decoded string literal.
Fields§
§kind: StrKindWhich prefix it was written with.
values: Vec<u32>The decoded elements: bytes (0..=255) for a narrow or UTF-8 literal,
UTF-16 code units (surrogate pairs and all) for a u"…" one, and
character values for U"…" and L"…". The terminating NUL is not
included.
text: StringThe exact source spelling, including quotes.
Implementations§
Trait Implementations§
impl Eq for StrLit
impl StructuralPartialEq for StrLit
Auto Trait Implementations§
impl Freeze for StrLit
impl RefUnwindSafe for StrLit
impl Send for StrLit
impl Sync for StrLit
impl Unpin for StrLit
impl UnsafeUnpin for StrLit
impl UnwindSafe for StrLit
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