pub struct EtaReduction {
pub inner_id: u64,
pub ctor: String,
pub is_valid: bool,
}Expand description
An eta-reduction opportunity: a constructor applied to its own projections.
Fields§
§inner_id: u64The inner expression (the projected-from value).
ctor: StringThe structure constructor name.
is_valid: boolWhether the reduction is valid (all projections match).
Implementations§
Trait Implementations§
Source§impl Clone for EtaReduction
impl Clone for EtaReduction
Source§fn clone(&self) -> EtaReduction
fn clone(&self) -> EtaReduction
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 EtaReduction
impl RefUnwindSafe for EtaReduction
impl Send for EtaReduction
impl Sync for EtaReduction
impl Unpin for EtaReduction
impl UnsafeUnpin for EtaReduction
impl UnwindSafe for EtaReduction
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