pub struct RefinementContext { /* private fields */ }Expand description
Context for evaluating dependent refinement predicates.
Implementations§
Source§impl RefinementContext
impl RefinementContext
Sourcepub fn set_type(&mut self, var: impl Into<String>, ty: RefinementType)
pub fn set_type(&mut self, var: impl Into<String>, ty: RefinementType)
Set a variable’s type.
Sourcepub fn get_type(&self, var: &str) -> Option<&RefinementType>
pub fn get_type(&self, var: &str) -> Option<&RefinementType>
Get a variable’s type.
Sourcepub fn has_variable(&self, var: &str) -> bool
pub fn has_variable(&self, var: &str) -> bool
Check if a variable exists in the context.
Trait Implementations§
Source§impl Clone for RefinementContext
impl Clone for RefinementContext
Source§fn clone(&self) -> RefinementContext
fn clone(&self) -> RefinementContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RefinementContext
impl Debug for RefinementContext
Source§impl Default for RefinementContext
impl Default for RefinementContext
Source§fn default() -> RefinementContext
fn default() -> RefinementContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RefinementContext
impl !RefUnwindSafe for RefinementContext
impl Send for RefinementContext
impl Sync for RefinementContext
impl Unpin for RefinementContext
impl !UnwindSafe for RefinementContext
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