[−][src]Enum rustc_hir::PrimTy

pub enum PrimTy {
    Int(IntTy),
    Uint(UintTy),
    Float(FloatTy),
    Str,
    Bool,
    Char,
}

Not represented directly in the AST; referred to by name through a ty_path.

Variants

Int(IntTy)
Uint(UintTy)
Float(FloatTy)
Str
Bool
Char

Implementations

impl PrimTy[src]

pub fn name_str(self) -> &'static str[src]

pub fn name(self) -> Symbol[src]

Trait Implementations

impl Clone for PrimTy[src]

impl Copy for PrimTy[src]

impl Debug for PrimTy[src]

impl<__D: Decoder> Decodable<__D> for PrimTy[src]

impl<__E: Encoder> Encodable<__E> for PrimTy[src]

impl Eq for PrimTy[src]

impl Hash for PrimTy[src]

impl<__CTX> HashStable<__CTX> for PrimTy where
    __CTX: HashStableContext, 
[src]

impl PartialEq<PrimTy> for PrimTy[src]

impl StructuralEq for PrimTy[src]

impl StructuralPartialEq for PrimTy[src]

Auto Trait Implementations

impl RefUnwindSafe for PrimTy

impl Send for PrimTy

impl Sync for PrimTy

impl Unpin for PrimTy

impl UnwindSafe for PrimTy

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.