#[non_exhaustive]pub enum StackBehaviourPush {
Push0,
Push1,
Push1Push1,
PushI,
PushI8,
PushR4,
PushR8,
PushRef,
VarPush,
}Expand description
How many results an instruction pushes (ECMA-335 VI.C).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Push0
Push1
Push1Push1
PushI
PushI8
PushR4
PushR8
PushRef
VarPush
The count depends on the call signature.
Implementations§
Source§impl StackBehaviourPush
impl StackBehaviourPush
Sourcepub const fn count(self) -> Option<u8>
pub const fn count(self) -> Option<u8>
The number of stack slots pushed, or None for StackBehaviourPush::VarPush.
Trait Implementations§
Source§impl Clone for StackBehaviourPush
impl Clone for StackBehaviourPush
impl Copy for StackBehaviourPush
Source§impl Debug for StackBehaviourPush
impl Debug for StackBehaviourPush
impl Eq for StackBehaviourPush
Source§impl Hash for StackBehaviourPush
impl Hash for StackBehaviourPush
Source§impl Ord for StackBehaviourPush
impl Ord for StackBehaviourPush
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for StackBehaviourPush
impl PartialEq for StackBehaviourPush
Source§impl PartialOrd for StackBehaviourPush
impl PartialOrd for StackBehaviourPush
impl StructuralPartialEq for StackBehaviourPush
Auto Trait Implementations§
impl Forget for StackBehaviourPush
impl Freeze for StackBehaviourPush
impl Move for StackBehaviourPush
impl RefUnwindSafe for StackBehaviourPush
impl Send for StackBehaviourPush
impl Sync for StackBehaviourPush
impl Unpin for StackBehaviourPush
impl UnsafeUnpin for StackBehaviourPush
impl UnwindSafe for StackBehaviourPush
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