#[repr(C)]pub struct i256(pub I256);
Expand description
Physical representation of a decimal
Tuple Fields§
§0: I256
Implementations§
Trait Implementations§
source§impl NativeType for i256
impl NativeType for i256
source§const PRIMITIVE: PrimitiveType = PrimitiveType::Int256
const PRIMITIVE: PrimitiveType = PrimitiveType::Int256
The corresponding variant of
PrimitiveType
.§type Bytes = [u8; 32]
type Bytes = [u8; 32]
Type denoting its representation as bytes.
This is
[u8; N]
where N = size_of::<T>
.source§fn to_le_bytes(&self) -> Self::Bytes
fn to_le_bytes(&self) -> Self::Bytes
To bytes in little endian
source§fn to_be_bytes(&self) -> Self::Bytes
fn to_be_bytes(&self) -> Self::Bytes
To bytes in big endian
source§fn from_be_bytes(bytes: Self::Bytes) -> Self
fn from_be_bytes(bytes: Self::Bytes) -> Self
From bytes in big endian
source§fn from_le_bytes(bytes: Self::Bytes) -> Self
fn from_le_bytes(bytes: Self::Bytes) -> Self
From bytes in little endian
source§impl PartialEq<i256> for i256
impl PartialEq<i256> for i256
source§impl PartialOrd<i256> for i256
impl PartialOrd<i256> for i256
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moresource§impl Simd8Lanes<i256> for [i256; 8]
Available on crate feature compute_comparison
only.
impl Simd8Lanes<i256> for [i256; 8]
Available on crate feature
compute_comparison
only.source§fn from_chunk(v: &[i256]) -> Self
fn from_chunk(v: &[i256]) -> Self
loads a complete chunk
source§fn from_incomplete_chunk(v: &[i256], remaining: i256) -> Self
fn from_incomplete_chunk(v: &[i256], remaining: i256) -> Self
loads an incomplete chunk, filling the remaining items with
remaining
.impl Copy for i256
impl Eq for i256
impl Pod for i256
impl StructuralEq for i256
impl StructuralPartialEq for i256
Auto Trait Implementations§
impl RefUnwindSafe for i256
impl Send for i256
impl Sync for i256
impl Unpin for i256
impl UnwindSafe for i256
Blanket Implementations§
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.