pub struct DefaultRuntimeProvider { /* private fields */ }

Trait Implementations§

source§

impl Debug for DefaultRuntimeProvider

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for DefaultRuntimeProvider

source§

fn default() -> DefaultRuntimeProvider

Returns the “default value” for a type. Read more
source§

impl RuntimeProvider for DefaultRuntimeProvider

source§

fn collect_definitions(&self) -> Vec<FunctionDefinition>

source§

fn alloc(&mut self, _db: &dyn CodegenDb, bytes: Expression) -> Expression

source§

fn avail(&mut self, _db: &dyn CodegenDb) -> Expression

source§

fn create( &mut self, db: &dyn CodegenDb, contract: ContractId, value: Expression ) -> Expression

source§

fn create2( &mut self, db: &dyn CodegenDb, contract: ContractId, value: Expression, salt: Expression ) -> Expression

source§

fn emit( &mut self, db: &dyn CodegenDb, event: Expression, event_ty: TypeId ) -> Expression

source§

fn revert( &mut self, db: &dyn CodegenDb, arg: Option<Expression>, arg_name: &str, arg_ty: TypeId ) -> Expression

source§

fn external_call( &mut self, db: &dyn CodegenDb, function: FunctionId, args: Vec<Expression> ) -> Expression

source§

fn map_value_ptr( &mut self, db: &dyn CodegenDb, map_ptr: Expression, key: Expression, key_ty: TypeId ) -> Expression

source§

fn aggregate_init( &mut self, db: &dyn CodegenDb, ptr: Expression, args: Vec<Expression>, ptr_ty: TypeId, arg_tys: Vec<TypeId> ) -> Expression

source§

fn string_copy( &mut self, db: &dyn CodegenDb, dst: Expression, data: &str, is_dst_storage: bool ) -> Expression

source§

fn string_construct( &mut self, db: &dyn CodegenDb, data: &str, string_len: usize ) -> Expression

source§

fn ptr_copy( &mut self, _db: &dyn CodegenDb, src: Expression, dst: Expression, size: Expression, is_src_storage: bool, is_dst_storage: bool ) -> Expression

Copy data from src to dst. NOTE: src and dst must be aligned by 32 when a ptr is storage ptr.
source§

fn ptr_store( &mut self, db: &dyn CodegenDb, ptr: Expression, imm: Expression, ptr_ty: TypeId ) -> Expression

source§

fn ptr_load( &mut self, db: &dyn CodegenDb, ptr: Expression, ptr_ty: TypeId ) -> Expression

source§

fn abi_encode( &mut self, db: &dyn CodegenDb, src: Expression, dst: Expression, src_ty: TypeId, is_dst_storage: bool ) -> Expression

source§

fn abi_encode_seq( &mut self, db: &dyn CodegenDb, src: &[Expression], dst: Expression, src_tys: &[TypeId], is_dst_storage: bool ) -> Expression

source§

fn abi_decode( &mut self, db: &dyn CodegenDb, src: Expression, size: Expression, types: &[TypeId], abi_loc: AbiSrcLocation ) -> Expression

source§

fn safe_add( &mut self, db: &dyn CodegenDb, lhs: Expression, rhs: Expression, ty: TypeId ) -> Expression

source§

fn safe_sub( &mut self, db: &dyn CodegenDb, lhs: Expression, rhs: Expression, ty: TypeId ) -> Expression

source§

fn safe_mul( &mut self, db: &dyn CodegenDb, lhs: Expression, rhs: Expression, ty: TypeId ) -> Expression

source§

fn safe_div( &mut self, db: &dyn CodegenDb, lhs: Expression, rhs: Expression, ty: TypeId ) -> Expression

source§

fn safe_mod( &mut self, db: &dyn CodegenDb, lhs: Expression, rhs: Expression, ty: TypeId ) -> Expression

source§

fn safe_pow( &mut self, db: &dyn CodegenDb, lhs: Expression, rhs: Expression, ty: TypeId ) -> Expression

source§

fn primitive_cast( &mut self, db: &dyn CodegenDb, value: Expression, from_ty: TypeId ) -> Expression

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.