pub struct BasicBlockEnvShape {
scope: Scope,
bindings: PlacesTree,
}
Fields§
§scope: Scope
§bindings: PlacesTree
Implementations§
Source§impl BasicBlockEnvShape
impl BasicBlockEnvShape
pub fn enter<'a>(&self, local_decls: &'a LocalDecls) -> TypeEnv<'a>
fn new( scope: Scope, env: TypeEnv<'_>, ) -> Result<BasicBlockEnvShape, CheckerErrKind>
fn pack_ty(scope: &Scope, ty: &Ty) -> Ty
fn pack_bty(scope: &Scope, bty: &BaseTy) -> BaseTy
fn pack_generic_arg(scope: &Scope, arg: &GenericArg) -> GenericArg
fn update(&mut self, path: &Path, ty: Ty)
Sourcepub(crate) fn join(
&mut self,
other: TypeEnv<'_>,
) -> Result<bool, CheckerErrKind>
pub(crate) fn join( &mut self, other: TypeEnv<'_>, ) -> Result<bool, CheckerErrKind>
join(self, genv, other) consumes the bindings in other, to “update”
self
in place, and returns true
if there was an actual change
or false
indicating no change (i.e., a fixpoint was reached).
fn join_ty(&self, ty1: &Ty, ty2: &Ty) -> Ty
fn join_idx( &self, e1: &Expr, e2: &Expr, sort: &Sort, bound_sorts: &mut Vec<Sort>, ) -> Expr
fn join_bty(&self, bty1: &BaseTy, bty2: &BaseTy) -> BaseTy
fn join_generic_arg(&self, arg1: &GenericArg, arg2: &GenericArg) -> GenericArg
pub fn into_bb_env(self, kvar_gen: &mut KVarGen) -> BasicBlockEnv
Trait Implementations§
Source§impl Debug for BasicBlockEnvShape
impl Debug for BasicBlockEnvShape
Auto Trait Implementations§
impl Freeze for BasicBlockEnvShape
impl RefUnwindSafe for BasicBlockEnvShape
impl Send for BasicBlockEnvShape
impl Sync for BasicBlockEnvShape
impl Unpin for BasicBlockEnvShape
impl UnwindSafe for BasicBlockEnvShape
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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