pub struct VmStateBuilder<'a> {
pub code: Option<OwnedCellSlice>,
pub data: Option<Cell>,
pub stack: SafeRc<Stack>,
pub libraries: Option<&'a dyn LibraryProvider>,
pub c7: Option<SafeRc<Vec<RcStackValue>>>,
pub gas: GasParams,
pub init_selector: InitSelectorParams,
pub version: Option<VmVersion>,
pub modifiers: BehaviourModifiers,
pub debug: Option<&'a mut dyn Write>,
}Expand description
Execution state builder.
Fields§
§code: Option<OwnedCellSlice>§data: Option<Cell>§stack: SafeRc<Stack>§libraries: Option<&'a dyn LibraryProvider>§c7: Option<SafeRc<Vec<RcStackValue>>>§gas: GasParams§init_selector: InitSelectorParams§version: Option<VmVersion>§modifiers: BehaviourModifiers§debug: Option<&'a mut dyn Write>Implementations§
Source§impl<'a> VmStateBuilder<'a>
impl<'a> VmStateBuilder<'a>
pub fn new() -> Self
pub fn build(self) -> VmState<'a>
pub fn with_libraries<T: LibraryProvider>(self, libraries: &'a T) -> Self
pub fn with_gas(self, gas: GasParams) -> Self
pub fn with_debug<T: Write>(self, stderr: &'a mut T) -> Self
pub fn with_code<T: IntoCode>(self, code: T) -> Self
pub fn with_data(self, data: Cell) -> Self
pub fn with_init_selector(self, push0: bool) -> Self
pub fn with_stack<I: IntoIterator<Item = RcStackValue>>(self, values: I) -> Self
pub fn with_raw_stack(self, stack: SafeRc<Stack>) -> Self
pub fn with_smc_info<T: SmcInfo>(self, info: T) -> Self
pub fn with_modifiers(self, modifiers: BehaviourModifiers) -> Self
pub fn with_version(self, version: VmVersion) -> Self
Trait Implementations§
Source§impl<'a> Default for VmStateBuilder<'a>
impl<'a> Default for VmStateBuilder<'a>
Source§fn default() -> VmStateBuilder<'a>
fn default() -> VmStateBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for VmStateBuilder<'a>
impl<'a> !RefUnwindSafe for VmStateBuilder<'a>
impl<'a> !Send for VmStateBuilder<'a>
impl<'a> !Sync for VmStateBuilder<'a>
impl<'a> Unpin for VmStateBuilder<'a>
impl<'a> !UnwindSafe for VmStateBuilder<'a>
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