Enum rustdoc::clean::types::PrimitiveType [−][src]
pub(crate) enum PrimitiveType {
Show 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,
}Expand description
N.B. this has to be different from hir::PrimTy because it also includes types that aren’t
paths, like Unit.
Variants
Implementations
impl PrimitiveType[src]
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]
tcx: TyCtxt<'_>
) -> &'static FxHashMap<PrimitiveType, ArrayVec<DefId, 4>>
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 Clone for PrimitiveType[src]fn clone(&self) -> PrimitiveType[src]
fn clone(&self) -> PrimitiveType[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for PrimitiveType[src]
impl Debug for PrimitiveType[src]impl From<FloatTy> for PrimitiveType[src]
impl From<FloatTy> for PrimitiveType[src]fn from(float_ty: FloatTy) -> PrimitiveType[src]
fn from(float_ty: FloatTy) -> PrimitiveType[src]Performs the conversion.
impl From<FloatTy> for PrimitiveType[src]
impl From<FloatTy> for PrimitiveType[src]fn from(float_ty: FloatTy) -> PrimitiveType[src]
fn from(float_ty: FloatTy) -> PrimitiveType[src]Performs the conversion.
impl From<IntTy> for PrimitiveType[src]
impl From<IntTy> for PrimitiveType[src]fn from(int_ty: IntTy) -> PrimitiveType[src]
fn from(int_ty: IntTy) -> PrimitiveType[src]Performs the conversion.
impl From<IntTy> for PrimitiveType[src]
impl From<IntTy> for PrimitiveType[src]fn from(int_ty: IntTy) -> PrimitiveType[src]
fn from(int_ty: IntTy) -> PrimitiveType[src]Performs the conversion.
impl From<PrimTy> for PrimitiveType[src]
impl From<PrimTy> for PrimitiveType[src]fn from(prim_ty: PrimTy) -> PrimitiveType[src]
fn from(prim_ty: PrimTy) -> PrimitiveType[src]Performs the conversion.
impl From<UintTy> for PrimitiveType[src]
impl From<UintTy> for PrimitiveType[src]fn from(uint_ty: UintTy) -> PrimitiveType[src]
fn from(uint_ty: UintTy) -> PrimitiveType[src]Performs the conversion.
impl From<UintTy> for PrimitiveType[src]
impl From<UintTy> for PrimitiveType[src]fn from(uint_ty: UintTy) -> PrimitiveType[src]
fn from(uint_ty: UintTy) -> PrimitiveType[src]Performs the conversion.
impl Hash for PrimitiveType[src]
impl Hash for PrimitiveType[src]impl PartialEq<PrimitiveType> for PrimitiveType[src]
impl PartialEq<PrimitiveType> for PrimitiveType[src]impl Copy for PrimitiveType[src]
impl Eq 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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>, pub fn vzip(self) -> V
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]
fn with_const(self) -> ConstnessAnd<Self>[src]
fn without_const(self) -> ConstnessAnd<Self>[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,