pub struct QuotientKernel { /* private fields */ }Expand description
Kernel-level record for quotient operations.
Implementations§
Source§impl QuotientKernel
impl QuotientKernel
Sourcepub fn register(&mut self, qt: QuotientType)
pub fn register(&mut self, qt: QuotientType)
Register a quotient type.
Sourcepub fn find_by_base(&self, base: &Expr) -> Option<&QuotientType>
pub fn find_by_base(&self, base: &Expr) -> Option<&QuotientType>
Find by base type.
Sourcepub fn is_quot_type(&self, expr: &Expr) -> bool
pub fn is_quot_type(&self, expr: &Expr) -> bool
Check if an expression is a quotient type.
Returns true if expr is either:
- Registered in this kernel (exact match against
qt.quot_type), or - Structurally a
Quot α rapplication (App(App(Quot, _), _)).
Trait Implementations§
Source§impl Clone for QuotientKernel
impl Clone for QuotientKernel
Source§fn clone(&self) -> QuotientKernel
fn clone(&self) -> QuotientKernel
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 QuotientKernel
impl Debug for QuotientKernel
Auto Trait Implementations§
impl Freeze for QuotientKernel
impl RefUnwindSafe for QuotientKernel
impl Send for QuotientKernel
impl Sync for QuotientKernel
impl Unpin for QuotientKernel
impl UnsafeUnpin for QuotientKernel
impl UnwindSafe for QuotientKernel
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