Struct rustc_ty_utils::consts::IsThirPolymorphic
source · struct IsThirPolymorphic<'a, 'tcx> {
is_poly: bool,
thir: &'a Thir<'tcx>,
}
Fields§
§is_poly: bool
§thir: &'a Thir<'tcx>
Implementations§
source§impl<'a, 'tcx> IsThirPolymorphic<'a, 'tcx>
impl<'a, 'tcx> IsThirPolymorphic<'a, 'tcx>
fn expr_is_poly(&mut self, expr: &Expr<'tcx>) -> bool
fn pat_is_poly(&mut self, pat: &Pat<'tcx>) -> bool
Trait Implementations§
source§impl<'a, 'tcx> Visitor<'a, 'tcx> for IsThirPolymorphic<'a, 'tcx>
impl<'a, 'tcx> Visitor<'a, 'tcx> for IsThirPolymorphic<'a, 'tcx>
Auto Trait Implementations§
impl<'a, 'tcx> !RefUnwindSafe for IsThirPolymorphic<'a, 'tcx>
impl<'a, 'tcx> !Send for IsThirPolymorphic<'a, 'tcx>
impl<'a, 'tcx> !Sync for IsThirPolymorphic<'a, 'tcx>
impl<'a, 'tcx> Unpin for IsThirPolymorphic<'a, 'tcx>
impl<'a, 'tcx> !UnwindSafe for IsThirPolymorphic<'a, 'tcx>
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes