pub enum HexLiteralKind {
X,
UnicodeShort,
UnicodeLong,
}
Expand description
The type of a Unicode hex literal.
Note that all variants behave the same when used with brackets. They only differ when used without brackets in the number of hex digits that must follow.
Variants§
X
A \x
prefix. When used without brackets, this form is limited to
two digits.
UnicodeShort
A \u
prefix. When used without brackets, this form is limited to
four digits.
UnicodeLong
A \U
prefix. When used without brackets, this form is limited to
eight digits.
Implementations§
Trait Implementations§
Source§impl Clone for HexLiteralKind
impl Clone for HexLiteralKind
Source§fn clone(&self) -> HexLiteralKind
fn clone(&self) -> HexLiteralKind
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 Debug for HexLiteralKind
impl Debug for HexLiteralKind
Source§impl PartialEq for HexLiteralKind
impl PartialEq for HexLiteralKind
impl Eq for HexLiteralKind
impl StructuralPartialEq for HexLiteralKind
Auto Trait Implementations§
impl Freeze for HexLiteralKind
impl RefUnwindSafe for HexLiteralKind
impl Send for HexLiteralKind
impl Sync for HexLiteralKind
impl Unpin for HexLiteralKind
impl UnwindSafe for HexLiteralKind
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,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
X
: 0 bytesUnicodeShort
: 0 bytesUnicodeLong
: 0 bytes