Enum wasmtime_environ::isa::unwind::input::UnwindCode
source · [−]pub enum UnwindCode<Reg> {
SaveRegister {
reg: Reg,
stack_offset: u32,
},
RestoreRegister {
reg: Reg,
},
StackAlloc {
size: u32,
},
StackDealloc {
size: u32,
},
SetFramePointer {
reg: Reg,
},
RestoreFramePointer,
RememberState,
RestoreState,
}
Expand description
Elementary operation in the unwind operations.
Variants
SaveRegister
Fields
stack_offset: u32
The specified offset relative to the stack pointer.
Defines that a register is saved at the specified offset.
RestoreRegister
Defines that a register is as defined before call.
StackAlloc
Fields
size: u32
Size to allocate.
The stack pointer was adjusted to allocate the stack.
StackDealloc
Fields
size: u32
Size to deallocate.
The stack pointer was adjusted to free the stack.
SetFramePointer
The alternative register was assigned as frame pointer base.
RestoreFramePointer
Restores a frame pointer base to default register.
RememberState
Saves the state.
RestoreState
Restores the state.
Trait Implementations
sourceimpl<Reg> Clone for UnwindCode<Reg> where
Reg: Clone,
impl<Reg> Clone for UnwindCode<Reg> where
Reg: Clone,
sourcepub fn clone(&self) -> UnwindCode<Reg>
pub fn clone(&self) -> UnwindCode<Reg>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<Reg> Debug for UnwindCode<Reg> where
Reg: Debug,
impl<Reg> Debug for UnwindCode<Reg> where
Reg: Debug,
sourceimpl<'de, Reg> Deserialize<'de> for UnwindCode<Reg> where
Reg: Deserialize<'de>,
impl<'de, Reg> Deserialize<'de> for UnwindCode<Reg> where
Reg: Deserialize<'de>,
sourcepub fn deserialize<__D>(
__deserializer: __D
) -> Result<UnwindCode<Reg>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<UnwindCode<Reg>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<Reg> PartialEq<UnwindCode<Reg>> for UnwindCode<Reg> where
Reg: PartialEq<Reg>,
impl<Reg> PartialEq<UnwindCode<Reg>> for UnwindCode<Reg> where
Reg: PartialEq<Reg>,
sourcepub fn eq(&self, other: &UnwindCode<Reg>) -> bool
pub fn eq(&self, other: &UnwindCode<Reg>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcepub fn ne(&self, other: &UnwindCode<Reg>) -> bool
pub fn ne(&self, other: &UnwindCode<Reg>) -> bool
This method tests for !=
.
sourceimpl<Reg> Serialize for UnwindCode<Reg> where
Reg: Serialize,
impl<Reg> Serialize for UnwindCode<Reg> where
Reg: Serialize,
sourcepub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<Reg> Eq for UnwindCode<Reg> where
Reg: Eq,
impl<Reg> StructuralEq for UnwindCode<Reg>
impl<Reg> StructuralPartialEq for UnwindCode<Reg>
Auto Trait Implementations
impl<Reg> RefUnwindSafe for UnwindCode<Reg> where
Reg: RefUnwindSafe,
impl<Reg> Send for UnwindCode<Reg> where
Reg: Send,
impl<Reg> Sync for UnwindCode<Reg> where
Reg: Sync,
impl<Reg> Unpin for UnwindCode<Reg> where
Reg: Unpin,
impl<Reg> UnwindSafe for UnwindCode<Reg> where
Reg: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more