Struct rustc_type_ir::ty_kind::TypeAndMut
source · pub struct TypeAndMut<I: Interner> {
pub ty: I::Ty,
pub mutbl: Mutability,
}Fields§
§ty: I::Ty§mutbl: MutabilityTrait Implementations§
source§impl<I: Interner> Clone for TypeAndMut<I>
impl<I: Interner> Clone for TypeAndMut<I>
source§impl<I: Interner> Debug for TypeAndMut<I>
impl<I: Interner> Debug for TypeAndMut<I>
source§impl<I: Interner> Hash for TypeAndMut<I>
impl<I: Interner> Hash for TypeAndMut<I>
source§impl<I: Interner, __CTX> HashStable<__CTX> for TypeAndMut<I>where
I::Ty: HashStable<__CTX>,
impl<I: Interner, __CTX> HashStable<__CTX> for TypeAndMut<I>where
I::Ty: HashStable<__CTX>,
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
source§impl<I: Interner> Ord for TypeAndMut<I>
impl<I: Interner> Ord for TypeAndMut<I>
source§impl<I: Interner> PartialEq for TypeAndMut<I>
impl<I: Interner> PartialEq for TypeAndMut<I>
source§impl<I: Interner> PartialOrd for TypeAndMut<I>
impl<I: Interner> PartialOrd for TypeAndMut<I>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl<I: Interner> TypeFoldable<I> for TypeAndMut<I>where
I::Ty: TypeFoldable<I>,
impl<I: Interner> TypeFoldable<I> for TypeAndMut<I>where
I::Ty: TypeFoldable<I>,
source§fn try_fold_with<F: FallibleTypeFolder<I>>(
self,
folder: &mut F
) -> Result<Self, F::Error>
fn try_fold_with<F: FallibleTypeFolder<I>>( self, folder: &mut F ) -> Result<Self, F::Error>
source§fn fold_with<F: TypeFolder<I>>(self, folder: &mut F) -> Self
fn fold_with<F: TypeFolder<I>>(self, folder: &mut F) -> Self
A convenient alternative to
try_fold_with for use with infallible
folders. Do not override this method, to ensure coherence with
try_fold_with.source§impl<I: Interner> TypeVisitable<I> for TypeAndMut<I>where
I::Ty: TypeVisitable<I>,
impl<I: Interner> TypeVisitable<I> for TypeAndMut<I>where
I::Ty: TypeVisitable<I>,
source§fn visit_with<V: TypeVisitor<I>>(
&self,
visitor: &mut V
) -> ControlFlow<V::BreakTy>
fn visit_with<V: TypeVisitor<I>>( &self, visitor: &mut V ) -> ControlFlow<V::BreakTy>
impl<I: Interner> Copy for TypeAndMut<I>
impl<I: Interner> Eq for TypeAndMut<I>
Auto Trait Implementations§
impl<I> RefUnwindSafe for TypeAndMut<I>
impl<I> Send for TypeAndMut<I>
impl<I> Sync for TypeAndMut<I>
impl<I> Unpin for TypeAndMut<I>
impl<I> UnwindSafe for TypeAndMut<I>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.