Enum cranelift_codegen::isa::StackBase
source · [−]pub enum StackBase {
SP,
FP,
Zone,
}
Expand description
Generic base register for referencing stack slots.
Most ISAs have a stack pointer and an optional frame pointer, so provide generic names for those two base pointers.
Variants
SP
Use the stack pointer.
FP
Use the frame pointer (if one is present).
Zone
Use an explicit zone pointer in a general-purpose register.
This feature is not yet implemented.
Trait Implementations
impl Copy for StackBase
impl Eq for StackBase
impl StructuralEq for StackBase
impl StructuralPartialEq for StackBase
Auto Trait Implementations
impl RefUnwindSafe for StackBase
impl Send for StackBase
impl Sync for StackBase
impl Unpin for StackBase
impl UnwindSafe for StackBase
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more