TypedContext

Struct TypedContext 

Source
struct TypedContext<'a, 'tcx> {
    checker: &'a SmtChecker<'tcx>,
    caller: DefId,
    forward: &'a ForwardVisitResult<'tcx>,
    required_ty: Ty<'tcx>,
}

Fields§

§checker: &'a SmtChecker<'tcx>§caller: DefId§forward: &'a ForwardVisitResult<'tcx>§required_ty: Ty<'tcx>

Implementations§

Source§

impl<'a, 'tcx> TypedContext<'a, 'tcx>

Source

fn place_is_typed( &mut self, place: &PlaceKey, seen: &mut HashSet<PlaceKey>, depth: usize, ) -> bool

Prove that a place denotes storage or a pointer whose dynamic type is required_ty.

Source

fn value_is_typed( &mut self, value: &AbstractValue<'tcx>, seen: &mut HashSet<PlaceKey>, depth: usize, ) -> bool

Prove that an abstract value carries required_ty typed provenance.

Source

fn latest_value_for_place( &self, place: &PlaceKey, ) -> Option<AbstractValue<'tcx>>

Return the latest value assigned to a place in the retained path slice.

Source

fn latest_cast_source_for_place( &self, place: &PlaceKey, ) -> Option<AbstractValue<'tcx>>

Return the latest cast source retained for a target place.

Source

fn latest_points_to_source(&self, place: &PlaceKey) -> Option<PlaceKey>

Return the latest provenance source retained for a pointer place.

Source

fn known_init_matches(&self, place: &PlaceKey) -> bool

Return true when a previous write initialized this place as required_ty.

Source

fn storage_place_is_typed(&self, place: &PlaceKey) -> bool

Return true when a Rust storage place itself is known to contain required_ty.

Source

fn place_ty(&self, place: &PlaceKey) -> Option<Ty<'tcx>>

Resolve a place type from MIR locals and field projections.

Source

fn ty_has_required_payload(&self, ty: Ty<'tcx>) -> bool

Return true when ty or its pointer/reference payload is required_ty.

Source

fn ty_matches(&self, ty: Ty<'tcx>) -> bool

Return true when two compiler types are the same for current verifier purposes.

Source

fn ty_name_matches(&self, ty_name: &str) -> bool

Return true when a stringly fact type name matches required_ty.

Auto Trait Implementations§

§

impl<'a, 'tcx> Freeze for TypedContext<'a, 'tcx>

§

impl<'a, 'tcx> !RefUnwindSafe for TypedContext<'a, 'tcx>

§

impl<'a, 'tcx> !Send for TypedContext<'a, 'tcx>

§

impl<'a, 'tcx> !Sync for TypedContext<'a, 'tcx>

§

impl<'a, 'tcx> Unpin for TypedContext<'a, 'tcx>

§

impl<'a, 'tcx> !UnwindSafe for TypedContext<'a, 'tcx>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,