Struct fuel_core::schema::dap::ConcreteStorage
source · pub struct ConcreteStorage { /* private fields */ }
Implementations§
source§impl ConcreteStorage
impl ConcreteStorage
pub fn new(params: ConsensusParameters, gas_costs: GasCosts) -> Self
pub fn register(&self, id: &ID, register: RegisterId) -> Option<Word>
pub fn memory(&self, id: &ID, start: usize, size: usize) -> Option<&[u8]>
pub fn init( &mut self, txs: &[Script], storage: DatabaseTransaction ) -> Result<ID>
pub fn kill(&mut self, id: &ID) -> bool
pub fn reset(&mut self, id: &ID, storage: DatabaseTransaction) -> Result<()>
pub fn exec(&mut self, id: &ID, op: Instruction) -> Result<(), InterpreterError>
Trait Implementations§
source§impl Clone for ConcreteStorage
impl Clone for ConcreteStorage
source§fn clone(&self) -> ConcreteStorage
fn clone(&self) -> ConcreteStorage
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 moresource§impl Debug for ConcreteStorage
impl Debug for ConcreteStorage
source§impl Default for ConcreteStorage
impl Default for ConcreteStorage
source§fn default() -> ConcreteStorage
fn default() -> ConcreteStorage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ConcreteStorage
impl Send for ConcreteStorage
impl Sync for ConcreteStorage
impl Unpin for ConcreteStorage
impl !UnwindSafe for ConcreteStorage
Blanket Implementations§
§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere T: Any + Debug,
§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any
.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