pub enum GroupOrInvoke {
Group(Id),
Invoke(Id),
}
Expand description
A wrapper enum to distinguish between Ids that come from groups and ids that were fabricated during the analysis for individual invoke statements. This prevents attempting to look up the ids used for the invoke statements as there will be no corresponding group.
Variants§
Trait Implementations§
Source§impl Clone for GroupOrInvoke
impl Clone for GroupOrInvoke
Source§fn clone(&self) -> GroupOrInvoke
fn clone(&self) -> GroupOrInvoke
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 moreSource§impl Debug for GroupOrInvoke
impl Debug for GroupOrInvoke
Source§impl Hash for GroupOrInvoke
impl Hash for GroupOrInvoke
Source§impl Into<Id> for GroupOrInvoke
impl Into<Id> for GroupOrInvoke
Source§impl Ord for GroupOrInvoke
impl Ord for GroupOrInvoke
Source§impl PartialEq for GroupOrInvoke
impl PartialEq for GroupOrInvoke
Source§impl PartialOrd for GroupOrInvoke
impl PartialOrd for GroupOrInvoke
impl Eq for GroupOrInvoke
impl StructuralPartialEq for GroupOrInvoke
Auto Trait Implementations§
impl Freeze for GroupOrInvoke
impl RefUnwindSafe for GroupOrInvoke
impl Send for GroupOrInvoke
impl Sync for GroupOrInvoke
impl Unpin for GroupOrInvoke
impl UnwindSafe for GroupOrInvoke
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
§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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
Compare self to
key
and return true
if they are equal.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