pub struct Enumerant {
pub req_params: ArrayVec<PackedOperandNameAndKind, 3>,
pub rest_params: Option<OperandKind>,
}
Fields§
§req_params: ArrayVec<PackedOperandNameAndKind, 3>
§rest_params: Option<OperandKind>
Implementations§
source§impl Enumerant
impl Enumerant
sourcepub fn all_params(
&self
) -> impl Iterator<Item = (OperandMode, OperandKind)> + '_
pub fn all_params( &self ) -> impl Iterator<Item = (OperandMode, OperandKind)> + '_
Return a (potentially infinite) iterator of OperandKind
s, along with
the OperandMode
indicating whether an operand is expected (Required
),
or that an operand’s absence signals the end of operands (Optional
),
which is also the exit signal for the “rest operands” infinite iterators.
sourcepub fn all_params_with_names(
&self
) -> impl Iterator<Item = (OperandMode, PackedOperandNameAndKind)> + '_
pub fn all_params_with_names( &self ) -> impl Iterator<Item = (OperandMode, PackedOperandNameAndKind)> + '_
Like all_params
, but providing access to the operand names as well.
Trait Implementations§
source§impl PartialEq<Enumerant> for Enumerant
impl PartialEq<Enumerant> for Enumerant
impl Eq for Enumerant
impl StructuralEq for Enumerant
impl StructuralPartialEq for Enumerant
Auto Trait Implementations§
impl RefUnwindSafe for Enumerant
impl Send for Enumerant
impl Sync for Enumerant
impl Unpin for Enumerant
impl UnwindSafe for Enumerant
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.