struct ProjectionSupport<'tcx> {
pf_vec: Vec<(usize, Ty<'tcx>)>,
deref: bool,
downcast: Option<VariantIdx>,
unsupport: bool,
}
Fields§
§pf_vec: Vec<(usize, Ty<'tcx>)>
§deref: bool
§downcast: Option<VariantIdx>
§unsupport: bool
Implementations§
source§impl<'tcx> ProjectionSupport<'tcx>
impl<'tcx> ProjectionSupport<'tcx>
pub fn pf_push(&mut self, index: usize, ty: Ty<'tcx>)
pub fn is_unsupported(&self) -> bool
pub fn has_field(&self) -> bool
pub fn has_downcast(&self) -> bool
pub fn downcast(&self) -> Option<VariantIdx>
pub fn index_needed(&self) -> usize
Trait Implementations§
source§impl<'tcx> Debug for ProjectionSupport<'tcx>
impl<'tcx> Debug for ProjectionSupport<'tcx>
Auto Trait Implementations§
impl<'tcx> Freeze for ProjectionSupport<'tcx>
impl<'tcx> !RefUnwindSafe for ProjectionSupport<'tcx>
impl<'tcx> Send for ProjectionSupport<'tcx>
impl<'tcx> Sync for ProjectionSupport<'tcx>
impl<'tcx> Unpin for ProjectionSupport<'tcx>
impl<'tcx> !UnwindSafe for ProjectionSupport<'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