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
impl Copy for MemoryState
impl Eq for MemoryState
impl StructuralPartialEq for MemoryState
Auto Trait Implementations§
impl Freeze for MemoryState
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more