pub struct EtaNormInfo {
pub normalized: Expr,
pub contractions: usize,
pub already_normal: bool,
}Expand description
Information about the eta-normal form of an expression.
Fields§
§normalized: ExprThe eta-normalized expression.
contractions: usizeNumber of eta contractions performed.
already_normal: boolWhether the expression was already in eta-normal form.
Implementations§
Source§impl EtaNormInfo
impl EtaNormInfo
Sourcepub fn already_normal(expr: Expr) -> Self
pub fn already_normal(expr: Expr) -> Self
Create an info record for an expression that was already normal.
Sourcepub fn contracted(expr: Expr, n: usize) -> Self
pub fn contracted(expr: Expr, n: usize) -> Self
Create an info record for an expression that required contractions.
Trait Implementations§
Source§impl Clone for EtaNormInfo
impl Clone for EtaNormInfo
Source§fn clone(&self) -> EtaNormInfo
fn clone(&self) -> EtaNormInfo
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 moreAuto Trait Implementations§
impl Freeze for EtaNormInfo
impl RefUnwindSafe for EtaNormInfo
impl Send for EtaNormInfo
impl Sync for EtaNormInfo
impl Unpin for EtaNormInfo
impl UnsafeUnpin for EtaNormInfo
impl UnwindSafe for EtaNormInfo
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