Struct fuel_vm::constraints::CheckedMemValue
source · pub struct CheckedMemValue<T>(_, _);
Expand description
A range of memory that has been checked that it fits into the VM memory.
This range can be used to read a value of type T
from memory.
Implementations§
source§impl<T> CheckedMemValue<T>
impl<T> CheckedMemValue<T>
sourcepub fn new<const SIZE: usize>(address: Word) -> Result<Self, RuntimeError>
pub fn new<const SIZE: usize>(address: Word) -> Result<Self, RuntimeError>
Create a new const sized memory range.
Trait Implementations§
source§impl<T: Clone> Clone for CheckedMemValue<T>
impl<T: Clone> Clone for CheckedMemValue<T>
source§fn clone(&self) -> CheckedMemValue<T>
fn clone(&self) -> CheckedMemValue<T>
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 more