pub struct DependentTypeContext { /* private fields */ }Expand description
Type checking context for dependent types.
Implementations§
Source§impl DependentTypeContext
impl DependentTypeContext
pub fn new() -> Self
Sourcepub fn bind_index(&mut self, name: impl Into<String>, value: i64)
pub fn bind_index(&mut self, name: impl Into<String>, value: i64)
Bind an index variable to a value
Sourcepub fn add_constraint(&mut self, constraint: DimConstraint)
pub fn add_constraint(&mut self, constraint: DimConstraint)
Add a dimension constraint
Sourcepub fn is_satisfiable(&self) -> bool
pub fn is_satisfiable(&self) -> bool
Check if constraints are satisfiable (simplified check)
Trait Implementations§
Source§impl Clone for DependentTypeContext
impl Clone for DependentTypeContext
Source§fn clone(&self) -> DependentTypeContext
fn clone(&self) -> DependentTypeContext
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 DependentTypeContext
impl Debug for DependentTypeContext
Source§impl Default for DependentTypeContext
impl Default for DependentTypeContext
Source§fn default() -> DependentTypeContext
fn default() -> DependentTypeContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DependentTypeContext
impl RefUnwindSafe for DependentTypeContext
impl Send for DependentTypeContext
impl Sync for DependentTypeContext
impl Unpin for DependentTypeContext
impl UnwindSafe for DependentTypeContext
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