pub struct Equalities { /* private fields */ }
Implementations§
Source§impl Equalities
impl Equalities
pub fn from_to(&self, eq: EqTransIdx) -> (ENodeIdx, ENodeIdx)
Sourcepub fn walk_trans<E>(
&self,
eq: EqTransIdx,
f: impl FnMut(&EqualityExpl, bool) -> Result<(), E>,
) -> Result<(), E>
pub fn walk_trans<E>( &self, eq: EqTransIdx, f: impl FnMut(&EqualityExpl, bool) -> Result<(), E>, ) -> Result<(), E>
Walk the given equalities of a transitive equality, returning early with the error if the closure returns one.
Source§impl Equalities
impl Equalities
pub fn is_equal( &self, eq: EqTransIdx, simple: &mut impl Iterator<Item = (EqGivenUse, bool)>, ) -> Option<bool>
Source§impl Equalities
impl Equalities
pub fn walk_to(&self, from: ENodeIdx, eq: EqTransIdx) -> ENodeIdx
pub fn path(&self, eq: EqTransIdx) -> Vec<ENodeIdx>
Trait Implementations§
Source§impl Debug for Equalities
impl Debug for Equalities
Source§impl Default for Equalities
impl Default for Equalities
Source§fn default() -> Equalities
fn default() -> Equalities
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Equalities
impl RefUnwindSafe for Equalities
impl Send for Equalities
impl Sync for Equalities
impl Unpin for Equalities
impl UnwindSafe for Equalities
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more