pub struct Binder<N>(pub FreeVar<N>);
Tuple Fields
0: FreeVar<N>
Trait Implementations
sourceimpl<N> BoundPattern<N> for Binder<N>where
N: Clone + Eq + Hash,
impl<N> BoundPattern<N> for Binder<N>where
N: Clone + Eq + Hash,
sourcefn pattern_eq(&self, _: &Binder<N>) -> bool
fn pattern_eq(&self, _: &Binder<N>) -> bool
Alpha equivalence for patterns
sourcefn 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
sourcefn 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
sourcefn 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 turn Read moresourcefn 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 turn Read moresourcefn 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 turn Read moresourcefn 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 turn Read moresourceimpl<N: PartialEq> PartialEq<Binder<N>> for Binder<N>
impl<N: PartialEq> PartialEq<Binder<N>> for Binder<N>
sourceimpl<N> PartialEq<Binder<N>> for FreeVar<N>where
N: PartialEq,
impl<N> PartialEq<Binder<N>> for FreeVar<N>where
N: PartialEq,
sourceimpl<N> PartialEq<Binder<N>> for Var<N>where
N: PartialEq,
impl<N> PartialEq<Binder<N>> for Var<N>where
N: PartialEq,
sourceimpl<N> PartialEq<FreeVar<N>> for Binder<N>where
N: PartialEq,
impl<N> PartialEq<FreeVar<N>> for Binder<N>where
N: PartialEq,
sourceimpl<N> PartialEq<Var<N>> for Binder<N>where
N: PartialEq,
impl<N> PartialEq<Var<N>> for Binder<N>where
N: PartialEq,
impl<N: Eq> Eq for Binder<N>
impl<N> StructuralEq for Binder<N>
impl<N> StructuralPartialEq for Binder<N>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more