Enum HexLiteralKind
pub enum HexLiteralKind
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
\xprefix. When used without brackets, this form is limited to two digits.-
UnicodeShort A
\uprefix. When used without brackets, this form is limited to four digits.-
UnicodeLong A
\Uprefix. When used without brackets, this form is limited to eight digits.
Implementations
impl HexLiteralKind
fn digits(&self) -> u32The number of digits that must be used with this literal form when used without brackets. When used with brackets, there is no restriction on the number of digits.
Trait Implementations
impl Clone for HexLiteralKind
fn clone(&self) -> Self
impl Debug for HexLiteralKind
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for HexLiteralKind
impl PartialEq for HexLiteralKind
fn eq(&self, other: &Self) -> bool
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 UnsafeUnpin for HexLiteralKind
impl UnwindSafe for HexLiteralKind
Blanket Implementations
impl<T> Any for HexLiteralKind
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for HexLiteralKind
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for HexLiteralKind
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for HexLiteralKind
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for HexLiteralKind
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for HexLiteralKind
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for HexLiteralKind
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for HexLiteralKind
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for HexLiteralKind
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>