[][src]Enum rustc_ap_rustc_lexer::Base

pub enum Base {
    Binary,
    Octal,
    Hexadecimal,
    Decimal,
}

Base of numeric literal encoding according to its prefix.

Variants

Binary

Literal starts with "0b".

Octal

Literal starts with "0o".

Hexadecimal

Literal starts with "0x".

Decimal

Literal doesn't contain a prefix.

Trait Implementations

impl Clone for Base[src]

impl Copy for Base[src]

impl Debug for Base[src]

impl Eq for Base[src]

impl Ord for Base[src]

impl PartialEq<Base> for Base[src]

impl PartialOrd<Base> for Base[src]

impl StructuralEq for Base[src]

impl StructuralPartialEq for Base[src]

Auto Trait Implementations

impl RefUnwindSafe for Base

impl Send for Base

impl Sync for Base

impl Unpin for Base

impl UnwindSafe for Base

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.