Struct moniker::Ignore [−][src]
pub struct Ignore<T>(pub T);
Data that does not participate in name binding
This can be useful for adding information like source code locations to syntax trees.
Trait Implementations
impl<T: Debug> Debug for Ignore<T>
[src]
impl<T: Debug> Debug for Ignore<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Copy> Copy for Ignore<T>
[src]
impl<T: Copy> Copy for Ignore<T>
impl<T: Clone> Clone for Ignore<T>
[src]
impl<T: Clone> Clone for Ignore<T>
fn clone(&self) -> Ignore<T>
[src]
fn clone(&self) -> Ignore<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T: PartialEq> PartialEq for Ignore<T>
[src]
impl<T: PartialEq> PartialEq for Ignore<T>
fn eq(&self, other: &Ignore<T>) -> bool
[src]
fn eq(&self, other: &Ignore<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Ignore<T>) -> bool
[src]
fn ne(&self, other: &Ignore<T>) -> bool
This method tests for !=
.
impl<T: Eq> Eq for Ignore<T>
[src]
impl<T: Eq> Eq for Ignore<T>
impl<T: Hash> Hash for Ignore<T>
[src]
impl<T: Hash> Hash for Ignore<T>
fn hash<__HT: Hasher>(&self, state: &mut __HT)
[src]
fn hash<__HT: Hasher>(&self, state: &mut __HT)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: Default> Default for Ignore<T>
[src]
impl<T: Default> Default for Ignore<T>
impl<N, T> BoundTerm<N> for Ignore<T>
[src]
impl<N, T> BoundTerm<N> for Ignore<T>
fn term_eq(&self, _: &Ignore<T>) -> bool
[src]
fn term_eq(&self, _: &Ignore<T>) -> bool
Alpha equivalence in a term context
fn close_term(&mut self, _: ScopeState, _: &[Binder<N>])
[src]
fn close_term(&mut self, _: ScopeState, _: &[Binder<N>])
fn open_term(&mut self, _: ScopeState, _: &[Binder<N>])
[src]
fn open_term(&mut self, _: ScopeState, _: &[Binder<N>])
fn visit_vars(
&self,
_: &mut impl FnMut(&Var<N>)
)
[src]
fn visit_vars(
&self,
_: &mut impl FnMut(&Var<N>)
)
fn visit_mut_vars(
&mut self,
_: &mut impl FnMut(&mut Var<N>)
)
[src]
fn visit_mut_vars(
&mut self,
_: &mut impl FnMut(&mut Var<N>)
)
fn free_vars(&self) -> HashSet<FreeVar<N>> where
N: Eq + Hash + Clone,
[src]
fn free_vars(&self) -> HashSet<FreeVar<N>> where
N: Eq + Hash + Clone,
Returns the set of free variables in this term
impl<N, T> BoundPattern<N> for Ignore<T>
[src]
impl<N, T> BoundPattern<N> for Ignore<T>
fn pattern_eq(&self, _: &Ignore<T>) -> bool
[src]
fn pattern_eq(&self, _: &Ignore<T>) -> bool
Alpha equivalence in a pattern context
fn close_pattern(&mut self, _: ScopeState, _: &[Binder<N>])
[src]
fn close_pattern(&mut self, _: ScopeState, _: &[Binder<N>])
fn open_pattern(&mut self, _: ScopeState, _: &[Binder<N>])
[src]
fn open_pattern(&mut self, _: ScopeState, _: &[Binder<N>])
fn visit_binders(
&self,
_: &mut impl FnMut(&Binder<N>)
)
[src]
fn visit_binders(
&self,
_: &mut impl FnMut(&Binder<N>)
)
fn visit_mut_binders(
&mut self,
_: &mut impl FnMut(&mut Binder<N>)
)
[src]
fn visit_mut_binders(
&mut self,
_: &mut impl FnMut(&mut Binder<N>)
)
fn binders(&self) -> Vec<Binder<N>> where
N: Clone,
[src]
fn binders(&self) -> Vec<Binder<N>> where
N: Clone,
Returns the binders in this pattern