pub enum DataStackMode {
Values,
Registers,
Mixed,
}Expand description
What a DataStack is allowed to hold.
A context keeps its call stack and its registers in two separate stacks, so each of them can be restricted to what it actually needs.
Variants§
Values
Pushed values only, no registers.
Registers
Registers only, no pushed values.
Mixed
Both, which is the default.
Implementations§
Source§impl DataStackMode
impl DataStackMode
Sourcepub fn allows_values(self) -> bool
pub fn allows_values(self) -> bool
Returns true when pushing and popping values is allowed.
Sourcepub fn allows_registers(self) -> bool
pub fn allows_registers(self) -> bool
Returns true when registers are allowed.
Trait Implementations§
Source§impl Clone for DataStackMode
impl Clone for DataStackMode
Source§fn clone(&self) -> DataStackMode
fn clone(&self) -> DataStackMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DataStackMode
Source§impl Debug for DataStackMode
impl Debug for DataStackMode
Source§impl Default for DataStackMode
impl Default for DataStackMode
Source§fn default() -> DataStackMode
fn default() -> DataStackMode
Returns the “default value” for a type. Read more
impl Eq for DataStackMode
Source§impl PartialEq for DataStackMode
impl PartialEq for DataStackMode
impl StructuralPartialEq for DataStackMode
Auto Trait Implementations§
impl Freeze for DataStackMode
impl RefUnwindSafe for DataStackMode
impl Send for DataStackMode
impl Sync for DataStackMode
impl Unpin for DataStackMode
impl UnsafeUnpin for DataStackMode
impl UnwindSafe for DataStackMode
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,
Source§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere
T: Default,
Source§fn initialize() -> T
fn initialize() -> T
Returns the initial value of this type.