[−][src]Enum rustc_infer::infer::error_reporting::TyCategory
This is a bare signal of what kind of type we're dealing with. ty::TyKind tracks
extra information about each type, but we only care about the category.
Variants
Implementations
impl TyCategory[src]
pub(in infer::error_reporting) fn descr(
&self
) -> &'static str[src]
&self
) -> &'static str
pub fn from_ty(ty: Ty<'_>) -> Option<(Self, DefId)>[src]
Trait Implementations
impl Clone for TyCategory[src]
pub fn clone(&self) -> TyCategory[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for TyCategory[src]
impl Eq for TyCategory[src]
impl Hash for TyCategory[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<TyCategory> for TyCategory[src]
pub fn eq(&self, other: &TyCategory) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl StructuralEq for TyCategory[src]
impl StructuralPartialEq for TyCategory[src]
Auto Trait Implementations
impl RefUnwindSafe for TyCategory
impl Send for TyCategory
impl Sync for TyCategory
impl Unpin for TyCategory
impl UnwindSafe for TyCategory
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<'tcx, T> ArenaAllocatable<'tcx, ()> for T where
T: Copy, [src]
T: Copy,
pub fn allocate_on(self, arena: &'a Arena<'tcx>) -> &'a mut T[src]
pub fn allocate_from_iter(
arena: &'a Arena<'tcx>,
iter: impl IntoIterator<Item = T>
) -> &'a mut [T][src]
arena: &'a Arena<'tcx>,
iter: impl IntoIterator<Item = T>
) -> &'a mut [T]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.