pub struct EtaCanonMap { /* private fields */ }Expand description
Eta canonicalization: maps expression ids to their canonical eta-normal form.
Implementations§
Source§impl EtaCanonMap
impl EtaCanonMap
Sourcepub fn insert(&mut self, original: u64, canon: u64)
pub fn insert(&mut self, original: u64, canon: u64)
Record that original canonicalizes to canon.
Sourcepub fn canonical(&self, original: u64) -> u64
pub fn canonical(&self, original: u64) -> u64
Return the canonical form of original, or itself if not mapped.
Sourcepub fn originals_of(&self, canon: u64) -> Vec<u64>
pub fn originals_of(&self, canon: u64) -> Vec<u64>
Return all original ids that map to canon.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EtaCanonMap
impl RefUnwindSafe for EtaCanonMap
impl Send for EtaCanonMap
impl Sync for EtaCanonMap
impl Unpin for EtaCanonMap
impl UnsafeUnpin for EtaCanonMap
impl UnwindSafe for EtaCanonMap
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