Struct rustc_pattern_analysis::usefulness::PlaceInfo
source · struct PlaceInfo<Cx: TypeCx> {
ty: Cx::Ty,
validity: ValidityConstraint,
is_scrutinee: bool,
}Expand description
Data about a place under investigation.
Fields§
§ty: Cx::TyThe type of the place.
validity: ValidityConstraintWhether the place is known to contain valid data.
is_scrutinee: boolWhether the place is the scrutinee itself or a subplace of it.
Implementations§
source§impl<Cx: TypeCx> PlaceInfo<Cx>
impl<Cx: TypeCx> PlaceInfo<Cx>
fn specialize<'a>( &'a self, cx: &'a Cx, ctor: &'a Constructor<Cx> ) -> impl Iterator<Item = Self> + ExactSizeIterator + Captures<'a>
Trait Implementations§
Auto Trait Implementations§
impl<Cx> RefUnwindSafe for PlaceInfo<Cx>
impl<Cx> Send for PlaceInfo<Cx>
impl<Cx> Sync for PlaceInfo<Cx>
impl<Cx> Unpin for PlaceInfo<Cx>
impl<Cx> UnwindSafe for PlaceInfo<Cx>
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
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
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.