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 moreAuto Trait Implementations§
impl<T> RefUnwindSafe for CheckedMemValue<T>where T: RefUnwindSafe,
impl<T> Send for CheckedMemValue<T>where T: Send,
impl<T> Sync for CheckedMemValue<T>where T: Sync,
impl<T> Unpin for CheckedMemValue<T>where T: Unpin,
impl<T> UnwindSafe for CheckedMemValue<T>where T: UnwindSafe,
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