Struct coreledger_backend::types::u256
pub struct u256(/* private fields */);
Expand description
Represents a 32-bytes-long unsigned big integer.
Is de-/serialized as 32-bytes-long unsigned big integer value, e.g.:
0X9A40BB9E560C9FD21E2EEF6FFA7A7F51679605321D9AF2E34A7FD2C402F94E2A
69_770_551_789_269_314_071_062_966_219_343_638_526_443_942_481_577_895_836_163_407_277_293_510_938_154
Implementations§
Trait Implementations§
§impl<'de> Deserialize<'de> for u256
impl<'de> Deserialize<'de> for u256
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Ord for u256
impl Ord for u256
§impl PartialOrd for u256
impl PartialOrd for u256
§fn partial_cmp(&self, other: &u256) -> Option<Ordering>
fn partial_cmp(&self, other: &u256) -> Option<Ordering>
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 more§impl Storable for u256
impl Storable for u256
§fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
Converts bytes into an element.
§fn to_bytes_checked(&self) -> Cow<'_, [u8]>
fn to_bytes_checked(&self) -> Cow<'_, [u8]>
Like
to_bytes
, but includes additional checks to ensure the element’s serialized bytes
are within the element’s bounds.impl Eq for u256
impl StructuralPartialEq for u256
Auto Trait Implementations§
impl Freeze for u256
impl RefUnwindSafe for u256
impl Send for u256
impl Sync for u256
impl Unpin for u256
impl UnwindSafe for u256
Blanket Implementations§
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