Enum rustdoc::clean::types::PrimitiveType[−][src]

pub(crate) enum PrimitiveType {
    Isize,
    I8,
    I16,
    I32,
    I64,
    I128,
    Usize,
    U8,
    U16,
    U32,
    U64,
    U128,
    F32,
    F64,
    Char,
    Bool,
    Str,
    Slice,
    Array,
    Tuple,
    Unit,
    RawPointer,
    Reference,
    Fn,
    Never,
}

N.B. this has to be different from hir::PrimTy because it also includes types that aren’t paths, like Unit.

Variants

Isize
I8
I16
I32
I64
I128
Usize
U8
U16
U32
U64
U128
F32
F64
Char
Bool
Str
Slice
Array
Tuple
Unit
RawPointer
Reference
Fn
Never

Implementations

impl PrimitiveType[src]

pub(crate) fn from_hir(prim: PrimTy) -> PrimitiveType[src]

pub(crate) fn from_symbol(s: Symbol) -> Option<PrimitiveType>[src]

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

pub(crate) fn impls(&self, tcx: TyCtxt<'_>) -> &'static ArrayVec<[DefId; 4]>[src]

pub(crate) fn all_impls(
    tcx: TyCtxt<'_>
) -> &'static FxHashMap<PrimitiveType, ArrayVec<[DefId; 4]>>
[src]

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

pub(crate) fn as_sym(&self) -> Symbol[src]

Trait Implementations

impl Clone for PrimitiveType[src]

impl Copy for PrimitiveType[src]

impl Debug for PrimitiveType[src]

impl Eq for PrimitiveType[src]

impl From<FloatTy> for PrimitiveType[src]

impl From<FloatTy> for PrimitiveType[src]

impl From<IntTy> for PrimitiveType[src]

impl From<IntTy> for PrimitiveType[src]

impl From<PrimTy> for PrimitiveType[src]

impl From<UintTy> for PrimitiveType[src]

impl From<UintTy> for PrimitiveType[src]

impl Hash for PrimitiveType[src]

impl PartialEq<PrimitiveType> for PrimitiveType[src]

impl StructuralEq for PrimitiveType[src]

impl StructuralPartialEq for PrimitiveType[src]

Auto Trait Implementations

impl RefUnwindSafe for PrimitiveType

impl Send for PrimitiveType

impl Sync for PrimitiveType

impl Unpin for PrimitiveType

impl UnwindSafe for PrimitiveType

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> Instrument 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithConstness for T[src]