pub struct w256 { /* private fields */ }
Expand description
Represents a 256
bit word. This is very similar what a u256
would be, but where all operations employ modulo arithmetic.
Implementations§
Trait Implementations§
source§impl<T: Into<u128>> From<T> for w256
impl<T: Into<u128>> From<T> for w256
Anything which can be converted into a u128
can be converted
into a w256
.
source§impl Ord for w256
impl Ord for w256
source§impl OverflowingAdd for w256
impl OverflowingAdd for w256
fn overflowing_add(self, rhs: w256) -> (Self, bool)
source§impl PartialEq<w256> for w256
impl PartialEq<w256> for w256
source§impl PartialOrd<w256> for w256
impl PartialOrd<w256> for w256
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 moreimpl Copy for w256
impl Eq for w256
impl StructuralEq for w256
impl StructuralPartialEq for w256
impl Word for w256
Default implementations for w256
Auto Trait Implementations§
impl RefUnwindSafe for w256
impl Send for w256
impl Sync for w256
impl Unpin for w256
impl UnwindSafe for w256
Blanket Implementations§
§impl<T> CloneAny for Twhere
T: Any + Clone,
impl<T> CloneAny for Twhere
T: Any + Clone,
fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
fn clone_any_send(&self) -> Box<dyn CloneAny + Send + 'static, Global>where
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync + 'static, Global>where
T: Sync,
fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + Send + Sync + 'static, Global>where
T: Send + Sync,
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.