pub struct Binder<N>(pub FreeVar<N>);Tuple Fields§
§0: FreeVar<N>Trait Implementations§
Source§impl<N> BoundPattern<N> for Binder<N>
impl<N> BoundPattern<N> for Binder<N>
Source§fn pattern_eq(&self, _: &Binder<N>) -> bool
fn pattern_eq(&self, _: &Binder<N>) -> bool
Alpha equivalence for patterns
Source§fn close_pattern(&mut self, _: ScopeState, _: &impl OnFreeFn<N>)
fn close_pattern(&mut self, _: ScopeState, _: &impl OnFreeFn<N>)
Close the terms in the pattern using the supplied binders
Source§fn open_pattern(&mut self, _: ScopeState, _: &impl OnBoundFn<N>)
fn open_pattern(&mut self, _: ScopeState, _: &impl OnBoundFn<N>)
Open the terms in the pattern using the supplied binders
Source§fn visit_vars(&self, _: &mut impl FnMut(&Var<N>))
fn visit_vars(&self, _: &mut impl FnMut(&Var<N>))
Visit each variable in the term, calling the
on_var callback on each
of them in turnSource§fn visit_mut_vars(&mut self, _: &mut impl FnMut(&mut Var<N>))
fn visit_mut_vars(&mut self, _: &mut impl FnMut(&mut Var<N>))
Visit each variable in the term, calling the
on_var callback on each
of them in turnSource§fn visit_binders(&self, on_binder: &mut impl FnMut(&Binder<N>))
fn visit_binders(&self, on_binder: &mut impl FnMut(&Binder<N>))
Visit each of the binders in the term, calling the
on_binder callback
on each of them in turnSource§fn visit_mut_binders(&mut self, on_binder: &mut impl FnMut(&mut Binder<N>))
fn visit_mut_binders(&mut self, on_binder: &mut impl FnMut(&mut Binder<N>))
Visit each of the binders in the term, calling the
on_binder callback
on each of them in turnimpl<N: Eq> Eq for Binder<N>
impl<N> StructuralPartialEq for Binder<N>
Auto Trait Implementations§
impl<N> Freeze for Binder<N>where
N: Freeze,
impl<N> RefUnwindSafe for Binder<N>where
N: RefUnwindSafe,
impl<N> Send for Binder<N>where
N: Send,
impl<N> Sync for Binder<N>where
N: Sync,
impl<N> Unpin for Binder<N>where
N: Unpin,
impl<N> UnwindSafe for Binder<N>where
N: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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