Enum solana_rbpf::memory_region::MemoryState
source · pub enum MemoryState {
Readable,
Writable,
Cow(u64),
}
Expand description
The state of a memory region.
Variants§
Readable
The memory region is readable
Writable
The memory region is writable
Cow(u64)
The memory region is writable but must be copied before writing. The carried data can be used to uniquely identify the region.
Trait Implementations§
source§impl Clone for MemoryState
impl Clone for MemoryState
source§fn clone(&self) -> MemoryState
fn clone(&self) -> MemoryState
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 MemoryState
impl Debug for MemoryState
source§impl Default for MemoryState
impl Default for MemoryState
source§fn default() -> MemoryState
fn default() -> MemoryState
Returns the “default value” for a type. Read more
source§impl PartialEq for MemoryState
impl PartialEq for MemoryState
source§fn eq(&self, other: &MemoryState) -> bool
fn eq(&self, other: &MemoryState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MemoryState
impl Eq for MemoryState
impl StructuralEq for MemoryState
impl StructuralPartialEq for MemoryState
Auto Trait Implementations§
impl RefUnwindSafe for MemoryState
impl Send for MemoryState
impl Sync for MemoryState
impl Unpin for MemoryState
impl UnwindSafe for MemoryState
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