EndianRepr

Trait EndianRepr 

Source
pub trait EndianRepr: Copy {
    // Required methods
    fn from_u128(v: u128) -> Self;
    fn to_u128(self) -> u128;
}
Available on crate feature io-core only.

Required Methods§

Source

fn from_u128(v: u128) -> Self

Source

fn to_u128(self) -> u128

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.

Implementations on Foreign Types§

Source§

impl EndianRepr for f32

Available on crate features io-core or io-std only.
Source§

fn from_u128(v: u128) -> Self

Source§

fn to_u128(self) -> u128

Source§

impl EndianRepr for f64

Available on crate features io-core or io-std only.
Source§

fn from_u128(v: u128) -> Self

Source§

fn to_u128(self) -> u128

Source§

impl EndianRepr for u8

Available on crate features io-core or io-std only.
Source§

fn from_u128(v: u128) -> Self

Source§

fn to_u128(self) -> u128

Source§

impl EndianRepr for u16

Available on crate features io-core or io-std only.
Source§

fn from_u128(v: u128) -> Self

Source§

fn to_u128(self) -> u128

Source§

impl EndianRepr for u32

Available on crate features io-core or io-std only.
Source§

fn from_u128(v: u128) -> Self

Source§

fn to_u128(self) -> u128

Source§

impl EndianRepr for u64

Available on crate features io-core or io-std only.
Source§

fn from_u128(v: u128) -> Self

Source§

fn to_u128(self) -> u128

Source§

impl EndianRepr for u128

Available on crate features io-core or io-std only.
Source§

fn from_u128(v: u128) -> Self

Source§

fn to_u128(self) -> u128

Source§

impl<A, B> EndianRepr for (A, B)
where A: EndianRepr + Copy, B: EndianRepr + Copy,

Available on crate features io-core or io-std only.
Source§

fn from_u128(v: u128) -> Self

Source§

fn to_u128(self) -> u128

Source§

impl<A, B, C> EndianRepr for (A, B, C)
where A: EndianRepr + Copy, B: EndianRepr + Copy, C: EndianRepr + Copy,

Available on crate features io-core or io-std only.
Source§

fn from_u128(v: u128) -> Self

Source§

fn to_u128(self) -> u128

Source§

impl<A, B, C, D> EndianRepr for (A, B, C, D)

Available on crate features io-core or io-std only.
Source§

fn from_u128(v: u128) -> Self

Source§

fn to_u128(self) -> u128

Source§

impl<A, B, C, D, E> EndianRepr for (A, B, C, D, E)

Available on crate features io-core or io-std only.
Source§

fn from_u128(v: u128) -> Self

Source§

fn to_u128(self) -> u128

Source§

impl<A, B, C, D, E, F> EndianRepr for (A, B, C, D, E, F)

Available on crate features io-core or io-std only.
Source§

fn from_u128(v: u128) -> Self

Source§

fn to_u128(self) -> u128

Source§

impl<A, B, C, D, E, F, G> EndianRepr for (A, B, C, D, E, F, G)

Available on crate features io-core or io-std only.
Source§

fn from_u128(v: u128) -> Self

Source§

fn to_u128(self) -> u128

Source§

impl<A, B, C, D, E, F, G, H> EndianRepr for (A, B, C, D, E, F, G, H)

Available on crate features io-core or io-std only.
Source§

fn from_u128(v: u128) -> Self

Source§

fn to_u128(self) -> u128

Source§

impl<A, B, C, D, E, F, G, H, I> EndianRepr for (A, B, C, D, E, F, G, H, I)

Available on crate features io-core or io-std only.
Source§

fn from_u128(v: u128) -> Self

Source§

fn to_u128(self) -> u128

Source§

impl<A, B, C, D, E, F, G, H, I, J> EndianRepr for (A, B, C, D, E, F, G, H, I, J)

Available on crate features io-core or io-std only.
Source§

fn from_u128(v: u128) -> Self

Source§

fn to_u128(self) -> u128

Source§

impl<A, B, C, D, E, F, G, H, I, J, K> EndianRepr for (A, B, C, D, E, F, G, H, I, J, K)

Available on crate features io-core or io-std only.
Source§

fn from_u128(v: u128) -> Self

Source§

fn to_u128(self) -> u128

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L> EndianRepr for (A, B, C, D, E, F, G, H, I, J, K, L)

Available on crate features io-core or io-std only.
Source§

fn from_u128(v: u128) -> Self

Source§

fn to_u128(self) -> u128

Implementors§