Trait hacspec_lib::prelude::UnsignedPublicInteger
source · [−]pub trait UnsignedPublicInteger: UnsignedInteger + PublicInteger {
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;
}
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
Implementations on Foreign Types
sourceimpl UnsignedPublicInteger for u8
impl UnsignedPublicInteger for u8
sourcefn to_le_bytes(self) -> Seq<u8>
fn to_le_bytes(self) -> Seq<u8>
This function is within the hacspec subset of Rust: its signature and body use only hacspec constructs and call functions whose signatures are in hacspec.
sourcefn to_be_bytes(self) -> Seq<u8>
fn to_be_bytes(self) -> Seq<u8>
This function is within the hacspec subset of Rust: its signature and body use only hacspec constructs and call functions whose signatures are in hacspec.
sourcefn from_le_bytes(x: &Seq<u8>) -> Self
fn from_le_bytes(x: &Seq<u8>) -> Self
This function is within the hacspec subset of Rust: its signature and body use only hacspec constructs and call functions whose signatures are in hacspec.
sourcefn from_be_bytes(x: &Seq<u8>) -> Self
fn from_be_bytes(x: &Seq<u8>) -> Self
This function is within the hacspec subset of Rust: its signature and body use only hacspec constructs and call functions whose signatures are in hacspec.
sourceimpl UnsignedPublicInteger for u16
impl UnsignedPublicInteger for u16
sourcefn to_le_bytes(self) -> Seq<u8>
fn to_le_bytes(self) -> Seq<u8>
This function is within the hacspec subset of Rust: its signature and body use only hacspec constructs and call functions whose signatures are in hacspec.
sourcefn to_be_bytes(self) -> Seq<u8>
fn to_be_bytes(self) -> Seq<u8>
This function is within the hacspec subset of Rust: its signature and body use only hacspec constructs and call functions whose signatures are in hacspec.
sourcefn from_le_bytes(x: &Seq<u8>) -> Self
fn from_le_bytes(x: &Seq<u8>) -> Self
This function is within the hacspec subset of Rust: its signature and body use only hacspec constructs and call functions whose signatures are in hacspec.
sourcefn from_be_bytes(x: &Seq<u8>) -> Self
fn from_be_bytes(x: &Seq<u8>) -> Self
This function is within the hacspec subset of Rust: its signature and body use only hacspec constructs and call functions whose signatures are in hacspec.
sourceimpl UnsignedPublicInteger for u32
impl UnsignedPublicInteger for u32
sourcefn to_le_bytes(self) -> Seq<u8>
fn to_le_bytes(self) -> Seq<u8>
This function is within the hacspec subset of Rust: its signature and body use only hacspec constructs and call functions whose signatures are in hacspec.
sourcefn to_be_bytes(self) -> Seq<u8>
fn to_be_bytes(self) -> Seq<u8>
This function is within the hacspec subset of Rust: its signature and body use only hacspec constructs and call functions whose signatures are in hacspec.
sourcefn from_le_bytes(x: &Seq<u8>) -> Self
fn from_le_bytes(x: &Seq<u8>) -> Self
This function is within the hacspec subset of Rust: its signature and body use only hacspec constructs and call functions whose signatures are in hacspec.
sourcefn from_be_bytes(x: &Seq<u8>) -> Self
fn from_be_bytes(x: &Seq<u8>) -> Self
This function is within the hacspec subset of Rust: its signature and body use only hacspec constructs and call functions whose signatures are in hacspec.
sourceimpl UnsignedPublicInteger for u64
impl UnsignedPublicInteger for u64
sourcefn to_le_bytes(self) -> Seq<u8>
fn to_le_bytes(self) -> Seq<u8>
This function is within the hacspec subset of Rust: its signature and body use only hacspec constructs and call functions whose signatures are in hacspec.
sourcefn to_be_bytes(self) -> Seq<u8>
fn to_be_bytes(self) -> Seq<u8>
This function is within the hacspec subset of Rust: its signature and body use only hacspec constructs and call functions whose signatures are in hacspec.
sourcefn from_le_bytes(x: &Seq<u8>) -> Self
fn from_le_bytes(x: &Seq<u8>) -> Self
This function is within the hacspec subset of Rust: its signature and body use only hacspec constructs and call functions whose signatures are in hacspec.
sourcefn from_be_bytes(x: &Seq<u8>) -> Self
fn from_be_bytes(x: &Seq<u8>) -> Self
This function is within the hacspec subset of Rust: its signature and body use only hacspec constructs and call functions whose signatures are in hacspec.
sourceimpl UnsignedPublicInteger for u128
impl UnsignedPublicInteger for u128
sourcefn to_le_bytes(self) -> Seq<u8>
fn to_le_bytes(self) -> Seq<u8>
This function is within the hacspec subset of Rust: its signature and body use only hacspec constructs and call functions whose signatures are in hacspec.
sourcefn to_be_bytes(self) -> Seq<u8>
fn to_be_bytes(self) -> Seq<u8>
This function is within the hacspec subset of Rust: its signature and body use only hacspec constructs and call functions whose signatures are in hacspec.
sourcefn from_le_bytes(x: &Seq<u8>) -> Self
fn from_le_bytes(x: &Seq<u8>) -> Self
This function is within the hacspec subset of Rust: its signature and body use only hacspec constructs and call functions whose signatures are in hacspec.
sourcefn from_be_bytes(x: &Seq<u8>) -> Self
fn from_be_bytes(x: &Seq<u8>) -> Self
This function is within the hacspec subset of Rust: its signature and body use only hacspec constructs and call functions whose signatures are in hacspec.