pub struct DependentTypeContext { /* private fields */ }Expand description
Context for evaluating dependent types.
Implementations§
Source§impl DependentTypeContext
impl DependentTypeContext
Sourcepub fn set_type(&mut self, name: impl Into<String>, ty: DependentType)
pub fn set_type(&mut self, name: impl Into<String>, ty: DependentType)
Register a type definition.
Sourcepub fn get_type(&self, name: &str) -> Option<&DependentType>
pub fn get_type(&self, name: &str) -> Option<&DependentType>
Get a type definition.
Sourcepub fn clear_dims(&mut self)
pub fn clear_dims(&mut self)
Clear all dimension bindings.
Trait Implementations§
Source§impl Clone for DependentTypeContext
impl Clone for DependentTypeContext
Source§impl Debug for DependentTypeContext
impl Debug for DependentTypeContext
Auto Trait Implementations§
impl Freeze for DependentTypeContext
impl RefUnwindSafe for DependentTypeContext
impl Send for DependentTypeContext
impl Sync for DependentTypeContext
impl Unpin for DependentTypeContext
impl UnsafeUnpin 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