pub struct IntervalEnv { /* private fields */ }Expand description
An abstract environment mapping variable names to interval values.
Implementations§
Source§impl IntervalEnv
impl IntervalEnv
Sourcepub fn get(&self, name: &str) -> Interval
pub fn get(&self, name: &str) -> Interval
Look up a variable’s interval (returns Top if not found).
Sourcepub fn join(&self, other: &IntervalEnv) -> IntervalEnv
pub fn join(&self, other: &IntervalEnv) -> IntervalEnv
Join two environments point-wise.
Sourcepub fn is_at_least_as_wide(&self, other: &IntervalEnv) -> bool
pub fn is_at_least_as_wide(&self, other: &IntervalEnv) -> bool
Return whether this environment is “wider” than or equal to other.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IntervalEnv
impl RefUnwindSafe for IntervalEnv
impl Send for IntervalEnv
impl Sync for IntervalEnv
impl Unpin for IntervalEnv
impl UnsafeUnpin for IntervalEnv
impl UnwindSafe for IntervalEnv
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