pub struct StringLiteral {
pub elements: Vec<u32>,
pub encoding: Encoding,
pub remarks: Remarks,
}Expand description
A converted string literal.
Fields§
§elements: Vec<u32>One value per element of the array, without the terminating zero, since the zero belongs
to the type and not to the spelling. An element is a byte in a plain or u8 literal, a
UTF-16 code unit in a u one, and a code point in a U one.
encoding: EncodingThe prefix it was written with.
remarks: RemarksWhat is worth saying about it, for the caller that holds the span.
Implementations§
Source§impl StringLiteral
impl StringLiteral
Trait Implementations§
Source§impl Clone for StringLiteral
impl Clone for StringLiteral
Source§fn clone(&self) -> StringLiteral
fn clone(&self) -> StringLiteral
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StringLiteral
impl Debug for StringLiteral
impl Eq for StringLiteral
Source§impl PartialEq for StringLiteral
impl PartialEq for StringLiteral
impl StructuralPartialEq for StringLiteral
Auto Trait Implementations§
impl Freeze for StringLiteral
impl RefUnwindSafe for StringLiteral
impl Send for StringLiteral
impl Sync for StringLiteral
impl Unpin for StringLiteral
impl UnsafeUnpin for StringLiteral
impl UnwindSafe for StringLiteral
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