Struct GenericActions
pub struct GenericActions<Head, Leaf>(pub Vec<GenericAction<Head, Leaf>>)
where
Head: Clone + Display,
Leaf: Clone + PartialEq + Eq + Display + Hash;Tuple Fields§
§0: Vec<GenericAction<Head, Leaf>>Implementations§
§impl<Head, Leaf> GenericActions<Head, Leaf>
impl<Head, Leaf> GenericActions<Head, Leaf>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = &GenericAction<Head, Leaf>>
pub fn visit_vars(&self, f: &mut impl FnMut(&Span, &Leaf))
pub fn visit_exprs( self, f: &mut impl FnMut(GenericExpr<Head, Leaf>) -> GenericExpr<Head, Leaf>, ) -> GenericActions<Head, Leaf>
pub fn new( actions: Vec<GenericAction<Head, Leaf>>, ) -> GenericActions<Head, Leaf>
pub fn singleton( action: GenericAction<Head, Leaf>, ) -> GenericActions<Head, Leaf>
Trait Implementations§
§impl<Head, Leaf> Clone for GenericActions<Head, Leaf>
impl<Head, Leaf> Clone for GenericActions<Head, Leaf>
§fn clone(&self) -> GenericActions<Head, Leaf>
fn clone(&self) -> GenericActions<Head, Leaf>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl<Head, Leaf> Debug for GenericActions<Head, Leaf>
impl<Head, Leaf> Debug for GenericActions<Head, Leaf>
§impl<Head, Leaf> Default for GenericActions<Head, Leaf>
impl<Head, Leaf> Default for GenericActions<Head, Leaf>
§fn default() -> GenericActions<Head, Leaf>
fn default() -> GenericActions<Head, Leaf>
Returns the “default value” for a type. Read more
§impl<Head, Leaf> Hash for GenericActions<Head, Leaf>
impl<Head, Leaf> Hash for GenericActions<Head, Leaf>
§impl<Head, Leaf> PartialEq for GenericActions<Head, Leaf>
impl<Head, Leaf> PartialEq for GenericActions<Head, Leaf>
impl<Head, Leaf> Eq for GenericActions<Head, Leaf>
impl<Head, Leaf> StructuralPartialEq for GenericActions<Head, Leaf>
Auto Trait Implementations§
impl<Head, Leaf> Freeze for GenericActions<Head, Leaf>
impl<Head, Leaf> RefUnwindSafe for GenericActions<Head, Leaf>where
Leaf: RefUnwindSafe,
Head: RefUnwindSafe,
impl<Head, Leaf> Send for GenericActions<Head, Leaf>
impl<Head, Leaf> Sync for GenericActions<Head, Leaf>
impl<Head, Leaf> Unpin for GenericActions<Head, Leaf>
impl<Head, Leaf> UnwindSafe for GenericActions<Head, Leaf>where
Leaf: UnwindSafe,
Head: 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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. 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