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§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