Enum walrus::ActiveDataLocation
source · pub enum ActiveDataLocation {
Absolute(u32),
Relative(GlobalId),
}
Expand description
The memory location where an active data segment will be automatically initialized.
Variants§
Absolute(u32)
A static, absolute address within the memory.
Relative(GlobalId)
A relative address (expressed as a global’s value) within the memory.
Trait Implementations§
source§impl Clone for ActiveDataLocation
impl Clone for ActiveDataLocation
source§fn clone(&self) -> ActiveDataLocation
fn clone(&self) -> ActiveDataLocation
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 ActiveDataLocation
impl Debug for ActiveDataLocation
source§impl PartialEq for ActiveDataLocation
impl PartialEq for ActiveDataLocation
source§fn eq(&self, other: &ActiveDataLocation) -> bool
fn eq(&self, other: &ActiveDataLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ActiveDataLocation
impl Eq for ActiveDataLocation
impl StructuralEq for ActiveDataLocation
impl StructuralPartialEq for ActiveDataLocation
Auto Trait Implementations§
impl RefUnwindSafe for ActiveDataLocation
impl Send for ActiveDataLocation
impl Sync for ActiveDataLocation
impl Unpin for ActiveDataLocation
impl UnwindSafe for ActiveDataLocation
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.