pub struct SlotMap { /* private fields */ }Expand description
A mapping between the parameter-slots of an e-class, and some “invocation” slots that you want to put into them.
This type is relevant for AppliedIds.
Implementations§
Source§impl SlotMap
impl SlotMap
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn contains_key(&self, k: Slot) -> bool
pub fn insert(&mut self, l: Slot, r: Slot)
pub fn get(&self, l: Slot) -> Option<Slot>
pub fn iter(&self) -> impl Iterator<Item = (Slot, Slot)> + '_
pub fn into_iter(self) -> impl Iterator<Item = (Slot, Slot)>
pub fn values_mut(&mut self) -> impl Iterator<Item = &mut Slot> + '_
pub fn values_immut(&self) -> impl Iterator<Item = &Slot> + '_
pub fn keys(&self) -> SmallHashSet<Slot>
pub fn values(&self) -> SmallHashSet<Slot>
pub fn keys_vec(&self) -> Vec<Slot>
pub fn values_vec(&self) -> Vec<Slot>
pub fn inverse(&self) -> SlotMap
pub fn is_bijection(&self) -> bool
pub fn is_perm(&self) -> bool
pub fn compose(&self, other: &SlotMap) -> SlotMap
pub fn compose_partial(&self, other: &SlotMap) -> SlotMap
pub fn compose_fresh(&self, other: &SlotMap) -> SlotMap
pub fn identity(set: &SmallHashSet<Slot>) -> SlotMap
pub fn bijection_from_fresh_to(set: &SmallHashSet<Slot>) -> SlotMap
pub fn remove(&mut self, x: Slot)
pub fn from_pairs(pairs: &[(Slot, Slot)]) -> SlotMap
pub fn union(&self, other: &SlotMap) -> Self
pub fn try_union(&self, other: &SlotMap) -> Option<Self>
Trait Implementations§
Source§impl Ord for SlotMap
impl Ord for SlotMap
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for SlotMap
impl PartialOrd for SlotMap
impl Eq for SlotMap
impl StructuralPartialEq for SlotMap
Auto Trait Implementations§
impl Freeze for SlotMap
impl RefUnwindSafe for SlotMap
impl Send for SlotMap
impl Sync for SlotMap
impl Unpin for SlotMap
impl UnsafeUnpin for SlotMap
impl UnwindSafe for SlotMap
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