[−][src]Struct solana_rbpf::memory_region::MemoryRegion
Memory region for bounds checking and address translation
Fields
addr_host: u64
start host address
addr_vm: u64
start virtual address
len: u64
Length in bytes
Methods
impl MemoryRegion
[src]
pub fn new_from_slice(v: &[u8], addr_vm: u64) -> Self
[src]
Creates a new MemoryRegion structure from a slice
pub fn vm_to_host(&self, vm_addr: u64, len: u64) -> Result<u64, Error>
[src]
Convert a virtual machine address into a host address
Trait Implementations
impl Clone for MemoryRegion
[src]
fn clone(&self) -> MemoryRegion
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MemoryRegion
[src]
impl Default for MemoryRegion
[src]
fn default() -> MemoryRegion
[src]
Auto Trait Implementations
impl RefUnwindSafe for MemoryRegion
impl Send for MemoryRegion
impl Sync for MemoryRegion
impl Unpin for MemoryRegion
impl UnwindSafe for MemoryRegion
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,