pub struct RustBigUint(pub BigInt);Tuple Fields§
§0: BigIntImplementations§
Trait Implementations§
Source§impl<'a, 'b> Add<&'b RustBigUint> for &'a RustBigUint
impl<'a, 'b> Add<&'b RustBigUint> for &'a RustBigUint
Source§type Output = RustBigUint
type Output = RustBigUint
The resulting type after applying the
+ operator.Source§fn add(self, other: &RustBigUint) -> RustBigUint
fn add(self, other: &RustBigUint) -> RustBigUint
Performs the
+ operation. Read moreSource§impl Add for RustBigUint
impl Add for RustBigUint
Source§type Output = RustBigUint
type Output = RustBigUint
The resulting type after applying the
+ operator.Source§fn add(self, other: RustBigUint) -> RustBigUint
fn add(self, other: RustBigUint) -> RustBigUint
Performs the
+ operation. Read moreSource§impl AddAssign<&RustBigUint> for RustBigUint
impl AddAssign<&RustBigUint> for RustBigUint
Source§fn add_assign(&mut self, other: &RustBigUint)
fn add_assign(&mut self, other: &RustBigUint)
Performs the
+= operation. Read moreSource§impl AddAssign for RustBigUint
impl AddAssign for RustBigUint
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl BigIntApi<RustBigUint> for RustBigInt
impl BigIntApi<RustBigUint> for RustBigInt
Source§impl BigUintApi for RustBigUint
impl BigUintApi for RustBigUint
fn byte_length(&self) -> i32
fn copy_to_slice_big_endian(&self, _slice: &mut [u8]) -> i32
fn copy_to_array_big_endian_pad_right(&self, target: &mut [u8; 32])
fn to_bytes_be(&self) -> Vec<u8> ⓘ
fn to_bytes_be_pad_right(&self, nr_bytes: usize) -> Option<Vec<u8>>
fn from_bytes_be(bytes: &[u8]) -> Self
fn zero() -> Self
Source§impl<'a, 'b> BitAnd<&'b RustBigUint> for &'a RustBigUint
impl<'a, 'b> BitAnd<&'b RustBigUint> for &'a RustBigUint
Source§type Output = RustBigUint
type Output = RustBigUint
The resulting type after applying the
& operator.Source§fn bitand(self, other: &RustBigUint) -> RustBigUint
fn bitand(self, other: &RustBigUint) -> RustBigUint
Performs the
& operation. Read moreSource§impl BitAnd for RustBigUint
impl BitAnd for RustBigUint
Source§type Output = RustBigUint
type Output = RustBigUint
The resulting type after applying the
& operator.Source§fn bitand(self, other: RustBigUint) -> RustBigUint
fn bitand(self, other: RustBigUint) -> RustBigUint
Performs the
& operation. Read moreSource§impl BitAndAssign<&RustBigUint> for RustBigUint
impl BitAndAssign<&RustBigUint> for RustBigUint
Source§fn bitand_assign(&mut self, other: &RustBigUint)
fn bitand_assign(&mut self, other: &RustBigUint)
Performs the
&= operation. Read moreSource§impl BitAndAssign for RustBigUint
impl BitAndAssign for RustBigUint
Source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Performs the
&= operation. Read moreSource§impl<'a, 'b> BitOr<&'b RustBigUint> for &'a RustBigUint
impl<'a, 'b> BitOr<&'b RustBigUint> for &'a RustBigUint
Source§type Output = RustBigUint
type Output = RustBigUint
The resulting type after applying the
| operator.Source§fn bitor(self, other: &RustBigUint) -> RustBigUint
fn bitor(self, other: &RustBigUint) -> RustBigUint
Performs the
| operation. Read moreSource§impl BitOr for RustBigUint
impl BitOr for RustBigUint
Source§type Output = RustBigUint
type Output = RustBigUint
The resulting type after applying the
| operator.Source§fn bitor(self, other: RustBigUint) -> RustBigUint
fn bitor(self, other: RustBigUint) -> RustBigUint
Performs the
| operation. Read moreSource§impl BitOrAssign<&RustBigUint> for RustBigUint
impl BitOrAssign<&RustBigUint> for RustBigUint
Source§fn bitor_assign(&mut self, other: &RustBigUint)
fn bitor_assign(&mut self, other: &RustBigUint)
Performs the
|= operation. Read moreSource§impl BitOrAssign for RustBigUint
impl BitOrAssign for RustBigUint
Source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Performs the
|= operation. Read moreSource§impl<'a, 'b> BitXor<&'b RustBigUint> for &'a RustBigUint
impl<'a, 'b> BitXor<&'b RustBigUint> for &'a RustBigUint
Source§type Output = RustBigUint
type Output = RustBigUint
The resulting type after applying the
^ operator.Source§fn bitxor(self, other: &RustBigUint) -> RustBigUint
fn bitxor(self, other: &RustBigUint) -> RustBigUint
Performs the
^ operation. Read moreSource§impl BitXor for RustBigUint
impl BitXor for RustBigUint
Source§type Output = RustBigUint
type Output = RustBigUint
The resulting type after applying the
^ operator.Source§fn bitxor(self, other: RustBigUint) -> RustBigUint
fn bitxor(self, other: RustBigUint) -> RustBigUint
Performs the
^ operation. Read moreSource§impl BitXorAssign<&RustBigUint> for RustBigUint
impl BitXorAssign<&RustBigUint> for RustBigUint
Source§fn bitxor_assign(&mut self, other: &RustBigUint)
fn bitxor_assign(&mut self, other: &RustBigUint)
Performs the
^= operation. Read moreSource§impl BitXorAssign for RustBigUint
impl BitXorAssign for RustBigUint
Source§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
Performs the
^= operation. Read moreSource§impl Clone for RustBigUint
impl Clone for RustBigUint
Source§impl ContractHookApi<RustBigInt, RustBigUint> for TxContext
impl ContractHookApi<RustBigInt, RustBigUint> for TxContext
fn get_sc_address(&self) -> Address
fn get_owner_address(&self) -> Address
fn get_caller(&self) -> Address
fn get_balance(&self, address: &Address) -> RustBigUint
fn storage_store_slice_u8(&self, key: &[u8], value: &[u8])
fn storage_load_vec_u8(&self, key: &[u8]) -> Vec<u8> ⓘ
fn storage_load_len(&self, key: &[u8]) -> usize
fn storage_store_bytes32(&self, key: &[u8], value: &[u8; 32])
fn storage_load_bytes32(&self, key: &[u8]) -> [u8; 32]
fn storage_store_big_uint(&self, key: &[u8], value: &RustBigUint)
fn storage_load_big_uint(&self, key: &[u8]) -> RustBigUint
fn storage_store_big_uint_raw(&self, _key: &[u8], _handle: i32)
fn storage_load_big_uint_raw(&self, _key: &[u8]) -> i32
fn storage_store_big_int(&self, key: &[u8], value: &RustBigInt)
fn storage_load_big_int(&self, key: &[u8]) -> RustBigInt
fn storage_store_i64(&self, key: &[u8], value: i64)
fn storage_store_u64(&self, key: &[u8], value: u64)
fn storage_load_i64(&self, key: &[u8]) -> i64
fn storage_load_u64(&self, key: &[u8]) -> u64
fn get_call_value_big_uint(&self) -> RustBigUint
fn get_dcdt_value_big_uint(&self) -> RustBigUint
fn get_dcdt_token_name(&self) -> Vec<u8> ⓘ
fn send_tx(&self, to: &Address, amount: &RustBigUint, _data: &[u8])
fn async_call(&self, to: &Address, amount: &RustBigUint, data: &[u8])
fn deploy_contract( &self, _gas: u64, _amount: &RustBigUint, _code: &BoxedBytes, _code_metadata: CodeMetadata, _arg_buffer: &ArgBuffer, ) -> Address
fn get_tx_hash(&self) -> H256
fn get_gas_left(&self) -> u64
fn get_block_timestamp(&self) -> u64
fn get_block_nonce(&self) -> u64
fn get_block_round(&self) -> u64
fn get_block_epoch(&self) -> u64
fn get_block_random_seed(&self) -> Box<[u8; 48]>
fn get_prev_block_timestamp(&self) -> u64
fn get_prev_block_nonce(&self) -> u64
fn get_prev_block_round(&self) -> u64
fn get_prev_block_epoch(&self) -> u64
fn get_prev_block_random_seed(&self) -> Box<[u8; 48]>
fn sha256(&self, data: &[u8]) -> H256
fn keccak256(&self, data: &[u8]) -> H256
fn get_sc_balance(&self) -> BigUint
fn storage_load_boxed_bytes(&self, key: &[u8]) -> BoxedBytes
fn storage_load_cumulated_validator_reward(&self) -> BigUint
Source§impl ContractIOApi<RustBigInt, RustBigUint> for TxContext
impl ContractIOApi<RustBigInt, RustBigUint> for TxContext
fn get_num_arguments(&self) -> i32
fn check_not_payable(&self)
fn get_argument_len(&self, arg_index: i32) -> usize
fn copy_argument_to_slice(&self, _arg_index: i32, _slice: &mut [u8])
fn get_argument_vec_u8(&self, arg_index: i32) -> Vec<u8> ⓘ
fn get_argument_boxed_bytes(&self, arg_index: i32) -> BoxedBytes
fn get_argument_big_uint(&self, arg_index: i32) -> RustBigUint
fn get_argument_big_int(&self, arg_index: i32) -> RustBigInt
fn get_argument_big_uint_raw(&self, _arg_index: i32) -> i32
fn get_argument_big_int_raw(&self, _arg_index: i32) -> i32
fn get_argument_i64(&self, arg_index: i32) -> i64
fn get_argument_u64(&self, arg_index: i32) -> u64
fn finish_slice_u8(&self, slice: &[u8])
fn finish_big_int(&self, bi: &RustBigInt)
fn finish_big_uint(&self, bu: &RustBigUint)
fn finish_big_int_raw(&self, _handle: i32)
fn finish_big_uint_raw(&self, _handle: i32)
fn finish_i64(&self, value: i64)
fn finish_u64(&self, value: u64)
fn signal_error(&self, message: &[u8]) -> !
fn write_log(&self, _topics: &[[u8; 32]], _data: &[u8])
fn check_num_arguments(&self, expected: i32)
Source§impl Debug for RustBigUint
impl Debug for RustBigUint
Source§impl<'a, 'b> Div<&'b RustBigUint> for &'a RustBigUint
impl<'a, 'b> Div<&'b RustBigUint> for &'a RustBigUint
Source§type Output = RustBigUint
type Output = RustBigUint
The resulting type after applying the
/ operator.Source§fn div(self, other: &RustBigUint) -> RustBigUint
fn div(self, other: &RustBigUint) -> RustBigUint
Performs the
/ operation. Read moreSource§impl Div for RustBigUint
impl Div for RustBigUint
Source§type Output = RustBigUint
type Output = RustBigUint
The resulting type after applying the
/ operator.Source§fn div(self, other: RustBigUint) -> RustBigUint
fn div(self, other: RustBigUint) -> RustBigUint
Performs the
/ operation. Read moreSource§impl DivAssign<&RustBigUint> for RustBigUint
impl DivAssign<&RustBigUint> for RustBigUint
Source§fn div_assign(&mut self, other: &RustBigUint)
fn div_assign(&mut self, other: &RustBigUint)
Performs the
/= operation. Read moreSource§impl DivAssign for RustBigUint
impl DivAssign for RustBigUint
Source§fn div_assign(&mut self, other: Self)
fn div_assign(&mut self, other: Self)
Performs the
/= operation. Read moreSource§impl From<BigInt> for RustBigUint
impl From<BigInt> for RustBigUint
Source§impl From<BigUint> for RustBigUint
impl From<BigUint> for RustBigUint
Source§impl From<RustBigUint> for RustBigInt
impl From<RustBigUint> for RustBigInt
Source§fn from(item: RustBigUint) -> Self
fn from(item: RustBigUint) -> Self
Converts to this type from the input type.
Source§impl From<u32> for RustBigUint
impl From<u32> for RustBigUint
Source§impl From<u64> for RustBigUint
impl From<u64> for RustBigUint
Source§impl From<usize> for RustBigUint
impl From<usize> for RustBigUint
Source§impl<'a, 'b> Mul<&'b RustBigUint> for &'a RustBigUint
impl<'a, 'b> Mul<&'b RustBigUint> for &'a RustBigUint
Source§type Output = RustBigUint
type Output = RustBigUint
The resulting type after applying the
* operator.Source§fn mul(self, other: &RustBigUint) -> RustBigUint
fn mul(self, other: &RustBigUint) -> RustBigUint
Performs the
* operation. Read moreSource§impl Mul for RustBigUint
impl Mul for RustBigUint
Source§type Output = RustBigUint
type Output = RustBigUint
The resulting type after applying the
* operator.Source§fn mul(self, other: RustBigUint) -> RustBigUint
fn mul(self, other: RustBigUint) -> RustBigUint
Performs the
* operation. Read moreSource§impl MulAssign<&RustBigUint> for RustBigUint
impl MulAssign<&RustBigUint> for RustBigUint
Source§fn mul_assign(&mut self, other: &RustBigUint)
fn mul_assign(&mut self, other: &RustBigUint)
Performs the
*= operation. Read moreSource§impl MulAssign for RustBigUint
impl MulAssign for RustBigUint
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*= operation. Read moreSource§impl NestedDecode for RustBigUint
impl NestedDecode for RustBigUint
Source§fn dep_decode<I: NestedDecodeInput>(input: &mut I) -> Result<Self, DecodeError>
fn dep_decode<I: NestedDecodeInput>(input: &mut I) -> Result<Self, DecodeError>
Attempt to deserialise the value from input,
using the format of an object nested inside another structure.
In case of success returns the deserialized value and the number of bytes consumed during the operation.
Source§fn dep_decode_or_exit<I: NestedDecodeInput, ExitCtx: Clone>(
input: &mut I,
c: ExitCtx,
exit: fn(ExitCtx, DecodeError) -> !,
) -> Self
fn dep_decode_or_exit<I: NestedDecodeInput, ExitCtx: Clone>( input: &mut I, c: ExitCtx, exit: fn(ExitCtx, DecodeError) -> !, ) -> Self
Version of
top_decode that exits quickly in case of error.
Its purpose is to create smaller implementations
in cases where the application is supposed to exit directly on decode error.Source§impl NestedEncode for RustBigUint
impl NestedEncode for RustBigUint
Source§fn dep_encode<O: NestedEncodeOutput>(
&self,
dest: &mut O,
) -> Result<(), EncodeError>
fn dep_encode<O: NestedEncodeOutput>( &self, dest: &mut O, ) -> Result<(), EncodeError>
NestedEncode to output, using the format of an object nested inside another structure.
Does not provide compact version.
Source§fn dep_encode_or_exit<O: NestedEncodeOutput, ExitCtx: Clone>(
&self,
dest: &mut O,
c: ExitCtx,
exit: fn(ExitCtx, EncodeError) -> !,
)
fn dep_encode_or_exit<O: NestedEncodeOutput, ExitCtx: Clone>( &self, dest: &mut O, c: ExitCtx, exit: fn(ExitCtx, EncodeError) -> !, )
Version of
top_decode that exits quickly in case of error.
Its purpose is to create smaller implementations
in cases where the application is supposed to exit directly on decode error.Source§impl Ord for RustBigUint
impl Ord for RustBigUint
Source§impl PartialEq<u64> for RustBigUint
impl PartialEq<u64> for RustBigUint
Source§impl PartialEq for RustBigUint
impl PartialEq for RustBigUint
Source§impl PartialOrd<u64> for RustBigUint
impl PartialOrd<u64> for RustBigUint
Source§impl PartialOrd for RustBigUint
impl PartialOrd for RustBigUint
Source§impl<'a, 'b> Rem<&'b RustBigUint> for &'a RustBigUint
impl<'a, 'b> Rem<&'b RustBigUint> for &'a RustBigUint
Source§type Output = RustBigUint
type Output = RustBigUint
The resulting type after applying the
% operator.Source§fn rem(self, other: &RustBigUint) -> RustBigUint
fn rem(self, other: &RustBigUint) -> RustBigUint
Performs the
% operation. Read moreSource§impl Rem for RustBigUint
impl Rem for RustBigUint
Source§type Output = RustBigUint
type Output = RustBigUint
The resulting type after applying the
% operator.Source§fn rem(self, other: RustBigUint) -> RustBigUint
fn rem(self, other: RustBigUint) -> RustBigUint
Performs the
% operation. Read moreSource§impl RemAssign<&RustBigUint> for RustBigUint
impl RemAssign<&RustBigUint> for RustBigUint
Source§fn rem_assign(&mut self, other: &RustBigUint)
fn rem_assign(&mut self, other: &RustBigUint)
Performs the
%= operation. Read moreSource§impl RemAssign for RustBigUint
impl RemAssign for RustBigUint
Source§fn rem_assign(&mut self, other: Self)
fn rem_assign(&mut self, other: Self)
Performs the
%= operation. Read moreSource§impl<'a> Shl<usize> for &'a RustBigUint
impl<'a> Shl<usize> for &'a RustBigUint
Source§type Output = RustBigUint
type Output = RustBigUint
The resulting type after applying the
<< operator.Source§impl Shl<usize> for RustBigUint
impl Shl<usize> for RustBigUint
Source§type Output = RustBigUint
type Output = RustBigUint
The resulting type after applying the
<< operator.Source§impl ShlAssign<usize> for RustBigUint
impl ShlAssign<usize> for RustBigUint
Source§fn shl_assign(&mut self, rhs: usize)
fn shl_assign(&mut self, rhs: usize)
Performs the
<<= operation. Read moreSource§impl<'a> Shr<usize> for &'a RustBigUint
impl<'a> Shr<usize> for &'a RustBigUint
Source§type Output = RustBigUint
type Output = RustBigUint
The resulting type after applying the
>> operator.Source§impl Shr<usize> for RustBigUint
impl Shr<usize> for RustBigUint
Source§type Output = RustBigUint
type Output = RustBigUint
The resulting type after applying the
>> operator.Source§impl ShrAssign<usize> for RustBigUint
impl ShrAssign<usize> for RustBigUint
Source§fn shr_assign(&mut self, rhs: usize)
fn shr_assign(&mut self, rhs: usize)
Performs the
>>= operation. Read moreSource§impl<'a, 'b> Sub<&'b RustBigUint> for &'a RustBigUint
impl<'a, 'b> Sub<&'b RustBigUint> for &'a RustBigUint
Source§type Output = RustBigUint
type Output = RustBigUint
The resulting type after applying the
- operator.Source§fn sub(self, other: &RustBigUint) -> RustBigUint
fn sub(self, other: &RustBigUint) -> RustBigUint
Performs the
- operation. Read moreSource§impl Sub for RustBigUint
impl Sub for RustBigUint
Source§type Output = RustBigUint
type Output = RustBigUint
The resulting type after applying the
- operator.Source§fn sub(self, other: RustBigUint) -> RustBigUint
fn sub(self, other: RustBigUint) -> RustBigUint
Performs the
- operation. Read moreSource§impl SubAssign<&RustBigUint> for RustBigUint
impl SubAssign<&RustBigUint> for RustBigUint
Source§fn sub_assign(&mut self, other: &RustBigUint)
fn sub_assign(&mut self, other: &RustBigUint)
Performs the
-= operation. Read moreSource§impl SubAssign for RustBigUint
impl SubAssign for RustBigUint
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreSource§impl TopDecode for RustBigUint
impl TopDecode for RustBigUint
Source§fn top_decode<I: TopDecodeInput>(input: I) -> Result<Self, DecodeError>
fn top_decode<I: TopDecodeInput>(input: I) -> Result<Self, DecodeError>
Attempt to deserialize the value from input.
Source§fn top_decode_or_exit<I: TopDecodeInput, ExitCtx: Clone>(
input: I,
_: ExitCtx,
_: fn(ExitCtx, DecodeError) -> !,
) -> Self
fn top_decode_or_exit<I: TopDecodeInput, ExitCtx: Clone>( input: I, _: ExitCtx, _: fn(ExitCtx, DecodeError) -> !, ) -> Self
Version of
top_decode that exits quickly in case of error.
Its purpose is to create smaller implementations
in cases where the application is supposed to exit directly on decode error.Source§impl TopEncode for RustBigUint
impl TopEncode for RustBigUint
Source§fn top_encode<O: TopEncodeOutput>(&self, output: O) -> Result<(), EncodeError>
fn top_encode<O: TopEncodeOutput>(&self, output: O) -> Result<(), EncodeError>
Attempt to serialize the value to ouput.
Source§fn top_encode_or_exit<O: TopEncodeOutput, ExitCtx: Clone>(
&self,
output: O,
c: ExitCtx,
exit: fn(ExitCtx, EncodeError) -> !,
)
fn top_encode_or_exit<O: TopEncodeOutput, ExitCtx: Clone>( &self, output: O, c: ExitCtx, exit: fn(ExitCtx, EncodeError) -> !, )
Version of
top_decode that exits quickly in case of error.
Its purpose is to create smaller bytecode implementations
in cases where the application is supposed to exit directly on decode error.Source§impl TypeAbi for RustBigUint
impl TypeAbi for RustBigUint
fn type_name() -> String
Source§fn provide_type_descriptions<TDC>(accumulator: &mut TDC)where
TDC: TypeDescriptionContainer,
fn provide_type_descriptions<TDC>(accumulator: &mut TDC)where
TDC: TypeDescriptionContainer,
A type can provide more than its own description.
For instance, a struct can also provide the descriptions of the type of its fields.
TypeAbi doesn’t care for the exact accumulator type,
which is abstracted by the TypeDescriptionContainer trait.
impl Eq for RustBigUint
Auto Trait Implementations§
impl Freeze for RustBigUint
impl RefUnwindSafe for RustBigUint
impl Send for RustBigUint
impl Sync for RustBigUint
impl Unpin for RustBigUint
impl UnwindSafe for RustBigUint
Blanket Implementations§
Source§impl<T> AsyncCallArg for Twhere
T: TopEncode,
impl<T> AsyncCallArg for Twhere
T: TopEncode,
fn push_async_arg( &self, serializer: &mut HexCallDataSerializer, ) -> Result<(), SCError>
fn push_async_arg_exact( &self, _serializer: &mut HexCallDataSerializer, _expected_len: usize, ) -> Result<(), SCError>
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