pub struct BigUint<M: ManagedTypeApi> { /* private fields */ }

Implementations§

source§

impl<M: ManagedTypeApi> BigUint<M>

More conversions here.

source

pub fn zero() -> Self

source

pub fn to_u64(&self) -> Option<u64>

source

pub fn from_bytes_be(bytes: &[u8]) -> Self

source

pub fn to_bytes_be(&self) -> BoxedBytes

source

pub fn from_bytes_be_buffer(managed_buffer: &ManagedBuffer<M>) -> Self

source

pub fn to_bytes_be_buffer(&self) -> ManagedBuffer<M>

source

pub fn copy_to_array_big_endian_pad_right(&self, target: &mut [u8; 32])

source§

impl<M: ManagedTypeApi> BigUint<M>

source

pub fn sqrt(&self) -> Self

source

pub fn pow(&self, exp: u32) -> Self

source

pub fn log2(&self) -> u32

Trait Implementations§

source§

impl<'a, 'b, M: ManagedTypeApi> Add<&'b BigUint<M>> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the + operator.
source§

fn add(self, other: &BigUint<M>) -> BigUint<M>

Performs the + operation. Read more
source§

impl<'b, M: ManagedTypeApi> Add<&'b BigUint<M>> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the + operator.
source§

fn add(self, other: &BigUint<M>) -> BigUint<M>

Performs the + operation. Read more
source§

impl<'a, M: ManagedTypeApi> Add<u32> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the + operator.
source§

fn add(self, other: u32) -> BigUint<M>

Performs the + operation. Read more
source§

impl<M: ManagedTypeApi> Add<u32> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the + operator.
source§

fn add(self, other: u32) -> BigUint<M>

Performs the + operation. Read more
source§

impl<'a, M: ManagedTypeApi> Add<u64> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the + operator.
source§

fn add(self, other: u64) -> BigUint<M>

Performs the + operation. Read more
source§

impl<M: ManagedTypeApi> Add<u64> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the + operator.
source§

fn add(self, other: u64) -> BigUint<M>

Performs the + operation. Read more
source§

impl<M: ManagedTypeApi> Add for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the + operator.
source§

fn add(self, other: BigUint<M>) -> BigUint<M>

Performs the + operation. Read more
source§

impl<M: ManagedTypeApi> AddAssign<&BigUint<M>> for BigUint<M>

source§

fn add_assign(&mut self, other: &BigUint<M>)

Performs the += operation. Read more
source§

impl<M: ManagedTypeApi> AddAssign<u32> for BigUint<M>

source§

fn add_assign(&mut self, other: u32)

Performs the += operation. Read more
source§

impl<M: ManagedTypeApi> AddAssign<u64> for BigUint<M>

source§

fn add_assign(&mut self, other: u64)

Performs the += operation. Read more
source§

impl<M: ManagedTypeApi> AddAssign for BigUint<M>

source§

fn add_assign(&mut self, other: Self)

Performs the += operation. Read more
source§

impl<'a, 'b, M: ManagedTypeApi> BitAnd<&'b BigUint<M>> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the & operator.
source§

fn bitand(self, other: &BigUint<M>) -> BigUint<M>

Performs the & operation. Read more
source§

impl<'b, M: ManagedTypeApi> BitAnd<&'b BigUint<M>> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the & operator.
source§

fn bitand(self, other: &BigUint<M>) -> BigUint<M>

Performs the & operation. Read more
source§

impl<'a, M: ManagedTypeApi> BitAnd<u32> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the & operator.
source§

fn bitand(self, other: u32) -> BigUint<M>

Performs the & operation. Read more
source§

impl<M: ManagedTypeApi> BitAnd<u32> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the & operator.
source§

fn bitand(self, other: u32) -> BigUint<M>

Performs the & operation. Read more
source§

impl<'a, M: ManagedTypeApi> BitAnd<u64> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the & operator.
source§

fn bitand(self, other: u64) -> BigUint<M>

Performs the & operation. Read more
source§

impl<M: ManagedTypeApi> BitAnd<u64> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the & operator.
source§

fn bitand(self, other: u64) -> BigUint<M>

Performs the & operation. Read more
source§

impl<M: ManagedTypeApi> BitAnd for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the & operator.
source§

fn bitand(self, other: BigUint<M>) -> BigUint<M>

Performs the & operation. Read more
source§

impl<M: ManagedTypeApi> BitAndAssign<&BigUint<M>> for BigUint<M>

source§

fn bitand_assign(&mut self, other: &BigUint<M>)

Performs the &= operation. Read more
source§

impl<M: ManagedTypeApi> BitAndAssign<u32> for BigUint<M>

source§

fn bitand_assign(&mut self, other: u32)

Performs the &= operation. Read more
source§

impl<M: ManagedTypeApi> BitAndAssign<u64> for BigUint<M>

source§

fn bitand_assign(&mut self, other: u64)

Performs the &= operation. Read more
source§

impl<M: ManagedTypeApi> BitAndAssign for BigUint<M>

source§

fn bitand_assign(&mut self, other: Self)

Performs the &= operation. Read more
source§

impl<'a, 'b, M: ManagedTypeApi> BitOr<&'b BigUint<M>> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the | operator.
source§

fn bitor(self, other: &BigUint<M>) -> BigUint<M>

Performs the | operation. Read more
source§

impl<'b, M: ManagedTypeApi> BitOr<&'b BigUint<M>> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the | operator.
source§

fn bitor(self, other: &BigUint<M>) -> BigUint<M>

Performs the | operation. Read more
source§

impl<'a, M: ManagedTypeApi> BitOr<u32> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the | operator.
source§

fn bitor(self, other: u32) -> BigUint<M>

Performs the | operation. Read more
source§

impl<M: ManagedTypeApi> BitOr<u32> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the | operator.
source§

fn bitor(self, other: u32) -> BigUint<M>

Performs the | operation. Read more
source§

impl<'a, M: ManagedTypeApi> BitOr<u64> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the | operator.
source§

fn bitor(self, other: u64) -> BigUint<M>

Performs the | operation. Read more
source§

impl<M: ManagedTypeApi> BitOr<u64> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the | operator.
source§

fn bitor(self, other: u64) -> BigUint<M>

Performs the | operation. Read more
source§

impl<M: ManagedTypeApi> BitOr for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the | operator.
source§

fn bitor(self, other: BigUint<M>) -> BigUint<M>

Performs the | operation. Read more
source§

impl<M: ManagedTypeApi> BitOrAssign<&BigUint<M>> for BigUint<M>

source§

fn bitor_assign(&mut self, other: &BigUint<M>)

Performs the |= operation. Read more
source§

impl<M: ManagedTypeApi> BitOrAssign<u32> for BigUint<M>

source§

fn bitor_assign(&mut self, other: u32)

Performs the |= operation. Read more
source§

impl<M: ManagedTypeApi> BitOrAssign<u64> for BigUint<M>

source§

fn bitor_assign(&mut self, other: u64)

Performs the |= operation. Read more
source§

impl<M: ManagedTypeApi> BitOrAssign for BigUint<M>

source§

fn bitor_assign(&mut self, other: Self)

Performs the |= operation. Read more
source§

impl<'a, 'b, M: ManagedTypeApi> BitXor<&'b BigUint<M>> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, other: &BigUint<M>) -> BigUint<M>

Performs the ^ operation. Read more
source§

impl<'b, M: ManagedTypeApi> BitXor<&'b BigUint<M>> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, other: &BigUint<M>) -> BigUint<M>

Performs the ^ operation. Read more
source§

impl<'a, M: ManagedTypeApi> BitXor<u32> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, other: u32) -> BigUint<M>

Performs the ^ operation. Read more
source§

impl<M: ManagedTypeApi> BitXor<u32> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, other: u32) -> BigUint<M>

Performs the ^ operation. Read more
source§

impl<'a, M: ManagedTypeApi> BitXor<u64> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, other: u64) -> BigUint<M>

Performs the ^ operation. Read more
source§

impl<M: ManagedTypeApi> BitXor<u64> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, other: u64) -> BigUint<M>

Performs the ^ operation. Read more
source§

impl<M: ManagedTypeApi> BitXor for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, other: BigUint<M>) -> BigUint<M>

Performs the ^ operation. Read more
source§

impl<M: ManagedTypeApi> BitXorAssign<&BigUint<M>> for BigUint<M>

source§

fn bitxor_assign(&mut self, other: &BigUint<M>)

Performs the ^= operation. Read more
source§

impl<M: ManagedTypeApi> BitXorAssign<u32> for BigUint<M>

source§

fn bitxor_assign(&mut self, other: u32)

Performs the ^= operation. Read more
source§

impl<M: ManagedTypeApi> BitXorAssign<u64> for BigUint<M>

source§

fn bitxor_assign(&mut self, other: u64)

Performs the ^= operation. Read more
source§

impl<M: ManagedTypeApi> BitXorAssign for BigUint<M>

source§

fn bitxor_assign(&mut self, other: Self)

Performs the ^= operation. Read more
source§

impl<M: ManagedTypeApi> Clone for BigUint<M>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<M: ManagedTypeApi> Debug for BigUint<M>

source§

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

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

impl<M: ManagedTypeApi> Default for BigUint<M>

source§

fn default() -> Self

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

impl<'a, 'b, M: ManagedTypeApi> Div<&'b BigUint<M>> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the / operator.
source§

fn div(self, other: &BigUint<M>) -> BigUint<M>

Performs the / operation. Read more
source§

impl<'b, M: ManagedTypeApi> Div<&'b BigUint<M>> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the / operator.
source§

fn div(self, other: &BigUint<M>) -> BigUint<M>

Performs the / operation. Read more
source§

impl<'a, M: ManagedTypeApi> Div<u32> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the / operator.
source§

fn div(self, other: u32) -> BigUint<M>

Performs the / operation. Read more
source§

impl<M: ManagedTypeApi> Div<u32> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the / operator.
source§

fn div(self, other: u32) -> BigUint<M>

Performs the / operation. Read more
source§

impl<'a, M: ManagedTypeApi> Div<u64> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the / operator.
source§

fn div(self, other: u64) -> BigUint<M>

Performs the / operation. Read more
source§

impl<M: ManagedTypeApi> Div<u64> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the / operator.
source§

fn div(self, other: u64) -> BigUint<M>

Performs the / operation. Read more
source§

impl<M: ManagedTypeApi> Div for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the / operator.
source§

fn div(self, other: BigUint<M>) -> BigUint<M>

Performs the / operation. Read more
source§

impl<M: ManagedTypeApi> DivAssign<&BigUint<M>> for BigUint<M>

source§

fn div_assign(&mut self, other: &BigUint<M>)

Performs the /= operation. Read more
source§

impl<M: ManagedTypeApi> DivAssign<u32> for BigUint<M>

source§

fn div_assign(&mut self, other: u32)

Performs the /= operation. Read more
source§

impl<M: ManagedTypeApi> DivAssign<u64> for BigUint<M>

source§

fn div_assign(&mut self, other: u64)

Performs the /= operation. Read more
source§

impl<M: ManagedTypeApi> DivAssign for BigUint<M>

source§

fn div_assign(&mut self, other: Self)

Performs the /= operation. Read more
source§

impl<M: ManagedTypeApi> From<&ManagedBuffer<M>> for BigUint<M>

source§

fn from(item: &ManagedBuffer<M>) -> Self

Converts to this type from the input type.
source§

impl<M: ManagedTypeApi> From<ManagedBuffer<M>> for BigUint<M>

source§

fn from(item: ManagedBuffer<M>) -> Self

Converts to this type from the input type.
source§

impl<M: ManagedTypeApi> From<u16> for BigUint<M>

source§

fn from(value: u16) -> Self

Converts to this type from the input type.
source§

impl<M: ManagedTypeApi> From<u32> for BigUint<M>

source§

fn from(value: u32) -> Self

Converts to this type from the input type.
source§

impl<M: ManagedTypeApi> From<u64> for BigUint<M>

source§

fn from(value: u64) -> Self

Converts to this type from the input type.
source§

impl<M: ManagedTypeApi> From<u8> for BigUint<M>

source§

fn from(value: u8) -> Self

Converts to this type from the input type.
source§

impl<M: ManagedTypeApi> From<usize> for BigUint<M>

source§

fn from(value: usize) -> Self

Converts to this type from the input type.
source§

impl<M: ManagedTypeApi> ManagedType<M> for BigUint<M>

source§

fn as_ref(&self) -> ManagedRef<'_, M, Self>

source§

impl<M: ManagedTypeApi> ManagedVecItem for BigUint<M>

source§

const PAYLOAD_SIZE: usize = 4usize

Size of the data stored in the underlying ManagedBuffer.
source§

const SKIPS_RESERIALIZATION: bool = false

If true, then the encoding of the item is identical to the payload, and no further conversion is necessary (the underlying buffer can be used as-is during serialization). False for all managed types, but true for basic types (like u32).
§

type Ref<'a> = ManagedRef<'a, M, BigUint<M>>

Reference representation of the ManagedVec item. Read more
source§

fn from_byte_reader<Reader: FnMut(&mut [u8])>(reader: Reader) -> Self

Parses given bytes as a an owned object.
source§

unsafe fn from_byte_reader_as_borrow<'a, Reader: FnMut(&mut [u8])>( reader: Reader ) -> Self::Ref<'a>

Parses given bytes as a representation of the object, either owned, or a reference. Read more
source§

fn to_byte_writer<R, Writer: FnMut(&[u8]) -> R>(&self, writer: Writer) -> R

source§

impl<'a, 'b, M: ManagedTypeApi> Mul<&'b BigUint<M>> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the * operator.
source§

fn mul(self, other: &BigUint<M>) -> BigUint<M>

Performs the * operation. Read more
source§

impl<'b, M: ManagedTypeApi> Mul<&'b BigUint<M>> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the * operator.
source§

fn mul(self, other: &BigUint<M>) -> BigUint<M>

Performs the * operation. Read more
source§

impl<'a, M: ManagedTypeApi> Mul<u32> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the * operator.
source§

fn mul(self, other: u32) -> BigUint<M>

Performs the * operation. Read more
source§

impl<M: ManagedTypeApi> Mul<u32> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the * operator.
source§

fn mul(self, other: u32) -> BigUint<M>

Performs the * operation. Read more
source§

impl<'a, M: ManagedTypeApi> Mul<u64> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the * operator.
source§

fn mul(self, other: u64) -> BigUint<M>

Performs the * operation. Read more
source§

impl<M: ManagedTypeApi> Mul<u64> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the * operator.
source§

fn mul(self, other: u64) -> BigUint<M>

Performs the * operation. Read more
source§

impl<M: ManagedTypeApi> Mul for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the * operator.
source§

fn mul(self, other: BigUint<M>) -> BigUint<M>

Performs the * operation. Read more
source§

impl<M: ManagedTypeApi> MulAssign<&BigUint<M>> for BigUint<M>

source§

fn mul_assign(&mut self, other: &BigUint<M>)

Performs the *= operation. Read more
source§

impl<M: ManagedTypeApi> MulAssign<u32> for BigUint<M>

source§

fn mul_assign(&mut self, other: u32)

Performs the *= operation. Read more
source§

impl<M: ManagedTypeApi> MulAssign<u64> for BigUint<M>

source§

fn mul_assign(&mut self, other: u64)

Performs the *= operation. Read more
source§

impl<M: ManagedTypeApi> MulAssign for BigUint<M>

source§

fn mul_assign(&mut self, other: Self)

Performs the *= operation. Read more
source§

impl<M: ManagedTypeApi> NestedDecode for BigUint<M>

source§

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

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<M: ManagedTypeApi> NestedEncode for BigUint<M>

source§

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, ExitCtx>( &self, dest: &mut O, c: ExitCtx, exit: fn(_: ExitCtx, _: EncodeError) -> ! )
where O: NestedEncodeOutput, ExitCtx: Clone,

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<M: ManagedTypeApi> Ord for BigUint<M>

source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl<M: ManagedTypeApi> PartialEq<i32> for BigUint<M>

source§

fn eq(&self, other: &i32) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<M: ManagedTypeApi> PartialEq<i64> for BigUint<M>

source§

fn eq(&self, other: &i64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<M: ManagedTypeApi> PartialEq<u32> for BigUint<M>

source§

fn eq(&self, other: &u32) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<M: ManagedTypeApi> PartialEq<u64> for BigUint<M>

source§

fn eq(&self, other: &u64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<M: ManagedTypeApi> PartialEq for BigUint<M>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<M: ManagedTypeApi> PartialOrd<i32> for BigUint<M>

source§

fn partial_cmp(&self, other: &i32) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<M: ManagedTypeApi> PartialOrd<i64> for BigUint<M>

source§

fn partial_cmp(&self, other: &i64) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<M: ManagedTypeApi> PartialOrd<u32> for BigUint<M>

source§

fn partial_cmp(&self, other: &u32) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<M: ManagedTypeApi> PartialOrd<u64> for BigUint<M>

source§

fn partial_cmp(&self, other: &u64) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<M: ManagedTypeApi> PartialOrd for BigUint<M>

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<'a, 'b, M: ManagedTypeApi> Rem<&'b BigUint<M>> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the % operator.
source§

fn rem(self, other: &BigUint<M>) -> BigUint<M>

Performs the % operation. Read more
source§

impl<'b, M: ManagedTypeApi> Rem<&'b BigUint<M>> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the % operator.
source§

fn rem(self, other: &BigUint<M>) -> BigUint<M>

Performs the % operation. Read more
source§

impl<'a, M: ManagedTypeApi> Rem<u32> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the % operator.
source§

fn rem(self, other: u32) -> BigUint<M>

Performs the % operation. Read more
source§

impl<M: ManagedTypeApi> Rem<u32> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the % operator.
source§

fn rem(self, other: u32) -> BigUint<M>

Performs the % operation. Read more
source§

impl<'a, M: ManagedTypeApi> Rem<u64> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the % operator.
source§

fn rem(self, other: u64) -> BigUint<M>

Performs the % operation. Read more
source§

impl<M: ManagedTypeApi> Rem<u64> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the % operator.
source§

fn rem(self, other: u64) -> BigUint<M>

Performs the % operation. Read more
source§

impl<M: ManagedTypeApi> Rem for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the % operator.
source§

fn rem(self, other: BigUint<M>) -> BigUint<M>

Performs the % operation. Read more
source§

impl<M: ManagedTypeApi> RemAssign<&BigUint<M>> for BigUint<M>

source§

fn rem_assign(&mut self, other: &BigUint<M>)

Performs the %= operation. Read more
source§

impl<M: ManagedTypeApi> RemAssign<u32> for BigUint<M>

source§

fn rem_assign(&mut self, other: u32)

Performs the %= operation. Read more
source§

impl<M: ManagedTypeApi> RemAssign<u64> for BigUint<M>

source§

fn rem_assign(&mut self, other: u64)

Performs the %= operation. Read more
source§

impl<M: ManagedTypeApi> RemAssign for BigUint<M>

source§

fn rem_assign(&mut self, other: Self)

Performs the %= operation. Read more
source§

impl<'a, M: ManagedTypeApi> Shl<usize> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: usize) -> BigUint<M>

Performs the << operation. Read more
source§

impl<M: ManagedTypeApi> Shl<usize> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: usize) -> BigUint<M>

Performs the << operation. Read more
source§

impl<M: ManagedTypeApi> ShlAssign<usize> for BigUint<M>

source§

fn shl_assign(&mut self, rhs: usize)

Performs the <<= operation. Read more
source§

impl<'a, M: ManagedTypeApi> Shr<usize> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: usize) -> BigUint<M>

Performs the >> operation. Read more
source§

impl<M: ManagedTypeApi> Shr<usize> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: usize) -> BigUint<M>

Performs the >> operation. Read more
source§

impl<M: ManagedTypeApi> ShrAssign<usize> for BigUint<M>

source§

fn shr_assign(&mut self, rhs: usize)

Performs the >>= operation. Read more
source§

impl<'a, 'b, M: ManagedTypeApi> Sub<&'b BigUint<M>> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the - operator.
source§

fn sub(self, other: &BigUint<M>) -> BigUint<M>

Performs the - operation. Read more
source§

impl<'b, M: ManagedTypeApi> Sub<&'b BigUint<M>> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the - operator.
source§

fn sub(self, other: &BigUint<M>) -> BigUint<M>

Performs the - operation. Read more
source§

impl<'a, M: ManagedTypeApi> Sub<u32> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the - operator.
source§

fn sub(self, other: u32) -> BigUint<M>

Performs the - operation. Read more
source§

impl<M: ManagedTypeApi> Sub<u32> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the - operator.
source§

fn sub(self, other: u32) -> BigUint<M>

Performs the - operation. Read more
source§

impl<'a, M: ManagedTypeApi> Sub<u64> for &'a BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the - operator.
source§

fn sub(self, other: u64) -> BigUint<M>

Performs the - operation. Read more
source§

impl<M: ManagedTypeApi> Sub<u64> for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the - operator.
source§

fn sub(self, other: u64) -> BigUint<M>

Performs the - operation. Read more
source§

impl<M: ManagedTypeApi> Sub for BigUint<M>

§

type Output = BigUint<M>

The resulting type after applying the - operator.
source§

fn sub(self, other: BigUint<M>) -> BigUint<M>

Performs the - operation. Read more
source§

impl<M: ManagedTypeApi> SubAssign<&BigUint<M>> for BigUint<M>

source§

fn sub_assign(&mut self, other: &BigUint<M>)

Performs the -= operation. Read more
source§

impl<M: ManagedTypeApi> SubAssign<u32> for BigUint<M>

source§

fn sub_assign(&mut self, other: u32)

Performs the -= operation. Read more
source§

impl<M: ManagedTypeApi> SubAssign<u64> for BigUint<M>

source§

fn sub_assign(&mut self, other: u64)

Performs the -= operation. Read more
source§

impl<M: ManagedTypeApi> SubAssign for BigUint<M>

source§

fn sub_assign(&mut self, other: Self)

Performs the -= operation. Read more
source§

impl<M: ManagedTypeApi> TopDecode for BigUint<M>

source§

fn top_decode<I: TopDecodeInput>(input: I) -> Result<Self, DecodeError>

Attempt to deserialize the value from input.
source§

fn top_decode_or_exit<I, ExitCtx>( input: I, c: ExitCtx, exit: fn(_: ExitCtx, _: DecodeError) -> ! ) -> Self
where I: TopDecodeInput, ExitCtx: Clone,

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<M: ManagedTypeApi> TopEncode for BigUint<M>

source§

fn top_encode<O: TopEncodeOutput>(&self, output: O) -> Result<(), EncodeError>

Attempt to serialize the value to ouput.
source§

fn top_encode_or_exit<O, ExitCtx>( &self, output: O, c: ExitCtx, exit: fn(_: ExitCtx, _: EncodeError) -> ! )
where O: TopEncodeOutput, ExitCtx: Clone,

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<M: ManagedTypeApi> TryStaticCast for BigUint<M>

source§

fn type_eq<U>() -> bool
where U: TryStaticCast,

source§

fn try_cast<U>(self) -> Option<U>
where U: TryStaticCast,

source§

fn try_cast_ref<U>(&self) -> Option<&U>
where U: TryStaticCast,

source§

impl<M: ManagedTypeApi> TypeAbi for BigUint<M>

source§

fn type_name() -> String

source§

fn provide_type_descriptions<TDC: TypeDescriptionContainer>( accumulator: &mut TDC )

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.
source§

impl<M: ManagedTypeApi> Eq for BigUint<M>

Auto Trait Implementations§

§

impl<M> RefUnwindSafe for BigUint<M>
where M: RefUnwindSafe,

§

impl<M> Send for BigUint<M>
where M: Send,

§

impl<M> Sync for BigUint<M>
where M: Sync,

§

impl<M> Unpin for BigUint<M>
where M: Unpin,

§

impl<M> UnwindSafe for BigUint<M>
where M: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> ContractCallArg for T
where T: TopEncode,

source§

fn push_dyn_arg<O>(&self, output: &mut O)
where O: DynArgOutput,

source§

impl<T> DynArg for T
where T: TopEncode + TopDecode,

source§

fn dyn_load<I>(loader: &mut I, arg_id: ArgId) -> T
where I: DynArgInput,

source§

impl<T> EndpointResult for T
where T: TopEncode,

§

type DecodeAs = T

Indicates how the result of the endpoint can be interpreted when called via proxy. Self for most types.
source§

fn finish<FA>(&self)

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where 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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where 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 T
where 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.