hacspec_lib::prelude

Trait UnsignedSecretInteger

Source
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§

Source

fn to_le_bytes(self) -> Seq<U8>

Source

fn to_be_bytes(self) -> Seq<U8>

Source

fn from_le_bytes(x: &Seq<U8>) -> Self

Source

fn from_be_bytes(x: &Seq<U8>) -> Self

Provided Methods§

Source

fn get_byte(self, i: usize) -> Self

Get byte i of this integer.

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.

Implementors§