# Struct bigint2::M256
[−]
[src]

pub struct M256(_);

Represent an unsigned modulo 256-bit integer

## Methods

`impl M256`

[src]

`fn zero() -> M256`

Zero value of M256,

`fn one() -> M256`

One value of M256,

`fn max_value() -> M256`

Maximum value of M256,

`fn min_value() -> M256`

Minimum value of M256,

`fn bits(self) -> usize`

Bits required to represent this value.

`fn log2floor(self) -> usize`

Equals `floor(log2(*))`

. This is always an integer.

## Trait Implementations

`impl Eq for M256`

[src]

`impl PartialEq for M256`

[src]

`fn eq(&self, __arg_0: &M256) -> bool`

This method tests for `self`

and `other`

values to be equal, and is used by `==`

. Read more

`fn ne(&self, __arg_0: &M256) -> bool`

This method tests for `!=`

.

`impl Debug for M256`

[src]

`impl Copy for M256`

[src]

`impl Clone for M256`

[src]

`fn clone(&self) -> M256`

Returns a copy of the value. Read more

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

1.0.0

Performs copy-assignment from `source`

. Read more

`impl Hash for M256`

[src]

`fn hash<__H: Hasher>(&self, __arg_0: &mut __H)`

Feeds this value into the given [`Hasher`

]. Read more

`fn hash_slice<H>(data: &[Self], state: &mut H) where`

H: Hasher,

1.3.0

H: Hasher,

Feeds a slice of this type into the given [`Hasher`

]. Read more

`impl Default for M256`

[src]

`impl FromStr for M256`

[src]

`type Err = ParseHexError`

The associated error which can be returned from parsing.

`fn from_str(s: &str) -> Result<M256, ParseHexError>`

Parses a string `s`

to return a value of this type. Read more

`impl Encodable for M256`

[src]

`fn rlp_append(&self, s: &mut RlpStream)`

Append a value to the stream

`fn rlp_bytes(&self) -> ElasticArray1024<u8>`

Get rlp-encoded bytes for this instance

`impl From<bool> for M256`

[src]

`impl From<u64> for M256`

[src]

`impl Into<u64> for M256`

[src]

`impl From<usize> for M256`

[src]

`impl Into<usize> for M256`

[src]

`impl<'a> From<&'a [u8]> for M256`

[src]

`impl From<[u8; 32]> for M256`

[src]

`impl Into<[u8; 32]> for M256`

[src]

`impl Into<[u32; 8]> for M256`

[src]

`impl From<[u32; 8]> for M256`

[src]

`impl From<U256> for M256`

[src]

`impl Into<U256> for M256`

[src]

`impl From<U512> for M256`

[src]

`impl Into<U512> for M256`

[src]

`impl From<i32> for M256`

[src]

`impl Ord for M256`

[src]

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

This method returns an `Ordering`

between `self`

and `other`

. Read more

`impl PartialOrd for M256`

[src]

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

This method returns an ordering between `self`

and `other`

values if one exists. Read more

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

1.0.0

This method tests less than (for `self`

and `other`

) and is used by the `<`

operator. Read more

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

1.0.0

This method tests less than or equal to (for `self`

and `other`

) and is used by the `<=`

operator. Read more

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

1.0.0

This method tests greater than (for `self`

and `other`

) and is used by the `>`

operator. Read more

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

1.0.0

This method tests greater than or equal to (for `self`

and `other`

) and is used by the `>=`

operator. Read more

`impl BitAnd<M256> for M256`

[src]

`type Output = M256`

The resulting type after applying the `&`

operator

`fn bitand(self, other: M256) -> M256`

The method for the `&`

operator

`impl BitOr<M256> for M256`

[src]

`type Output = M256`

The resulting type after applying the `|`

operator

`fn bitor(self, other: M256) -> M256`

The method for the `|`

operator

`impl BitXor<M256> for M256`

[src]

`type Output = M256`

The resulting type after applying the `^`

operator

`fn bitxor(self, other: M256) -> M256`

The method for the `^`

operator

`impl Shl<usize> for M256`

[src]

`type Output = M256`

The resulting type after applying the `<<`

operator

`fn shl(self, shift: usize) -> M256`

The method for the `<<`

operator

`impl Shr<usize> for M256`

[src]

`type Output = M256`

The resulting type after applying the `>>`

operator

`fn shr(self, shift: usize) -> M256`

The method for the `>>`

operator

`impl Add<M256> for M256`

[src]

`type Output = M256`

The resulting type after applying the `+`

operator

`fn add(self, other: M256) -> M256`

The method for the `+`

operator

`impl Sub<M256> for M256`

[src]

`type Output = M256`

The resulting type after applying the `-`

operator

`fn sub(self, other: M256) -> M256`

The method for the `-`

operator

`impl Mul<M256> for M256`

[src]

`type Output = M256`

The resulting type after applying the `*`

operator

`fn mul(self, other: M256) -> M256`

The method for the `*`

operator

`impl Div for M256`

[src]

`type Output = M256`

The resulting type after applying the `/`

operator

`fn div(self, other: M256) -> M256`

The method for the `/`

operator

`impl Rem for M256`

[src]

`type Output = M256`

The resulting type after applying the `%`

operator

`fn rem(self, other: M256) -> M256`

The method for the `%`

operator

`impl Not for M256`

[src]

`type Output = M256`

The resulting type after applying the `!`

operator

`fn not(self) -> M256`

The method for the unary `!`

operator