Struct unc_vm_runner::logic::mocks::mock_memory::MockedMemory
source · pub struct MockedMemory(/* private fields */);Implementations§
source§impl MockedMemory
impl MockedMemory
pub const MEMORY_SIZE: u64 = 65_536u64
Trait Implementations§
source§impl Default for MockedMemory
impl Default for MockedMemory
source§impl MemoryLike for MockedMemory
impl MemoryLike for MockedMemory
source§fn fits_memory(&self, slice: MemSlice) -> Result<(), ()>
fn fits_memory(&self, slice: MemSlice) -> Result<(), ()>
Returns success if the memory interval is completely inside smart
contract’s memory. Read more
source§fn view_memory(&self, slice: MemSlice) -> Result<Cow<'_, [u8]>, ()>
fn view_memory(&self, slice: MemSlice) -> Result<Cow<'_, [u8]>, ()>
Returns view of the content of the given memory interval. Read more
Auto Trait Implementations§
impl Freeze for MockedMemory
impl RefUnwindSafe for MockedMemory
impl Send for MockedMemory
impl Sync for MockedMemory
impl Unpin for MockedMemory
impl UnwindSafe for MockedMemory
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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