pub trait UnsignedSecretInteger: UnsignedInteger + SecretInteger {
// Required methods
fn to_le_bytes(self) -> Seq<U8>;
fn to_be_bytes(self) -> Seq<U8>;
fn from_le_bytes(x: &Seq<U8>) -> Self;
fn from_be_bytes(x: &Seq<U8>) -> Self;
// Provided method
fn get_byte(self, i: usize) -> Self { ... }
}
Required Methods§
fn to_le_bytes(self) -> Seq<U8>
fn to_be_bytes(self) -> Seq<U8>
fn from_le_bytes(x: &Seq<U8>) -> Self
fn from_be_bytes(x: &Seq<U8>) -> Self
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.