Struct move_vm_test_utils::InMemoryStorage
source · [−]pub struct InMemoryStorage { /* private fields */ }
Expand description
Simple in-memory storage that can be used as a Move VM storage backend for testing purposes.
Implementations
sourceimpl InMemoryStorage
impl InMemoryStorage
pub fn apply_extended(&mut self, changeset: ChangeSet) -> Result<()>
pub fn apply(&mut self, changeset: ChangeSet) -> Result<()>
pub fn new() -> Self
pub fn publish_or_overwrite_module(&mut self, module_id: ModuleId, blob: Vec<u8>)
pub fn publish_or_overwrite_resource(
&mut self,
addr: AccountAddress,
struct_tag: StructTag,
blob: Vec<u8>
)
Trait Implementations
sourceimpl Clone for InMemoryStorage
impl Clone for InMemoryStorage
sourcefn clone(&self) -> InMemoryStorage
fn clone(&self) -> InMemoryStorage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InMemoryStorage
impl Debug for InMemoryStorage
sourceimpl ModuleResolver for InMemoryStorage
impl ModuleResolver for InMemoryStorage
sourceimpl ResourceResolver for InMemoryStorage
impl ResourceResolver for InMemoryStorage
Auto Trait Implementations
impl RefUnwindSafe for InMemoryStorage
impl Send for InMemoryStorage
impl Sync for InMemoryStorage
impl Unpin for InMemoryStorage
impl UnwindSafe for InMemoryStorage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more