Skip to main content

Primitive

Trait Primitive 

Source
pub trait Primitive: Sealed + Copy {
    type BigEndian: Copy;

    // Required methods
    fn from_big_endian(be: Self::BigEndian) -> Self;
    fn to_big_endian(ne: Self) -> Self::BigEndian;
}

Required Associated Types§

Required Methods§

Source

fn from_big_endian(be: Self::BigEndian) -> Self

Source

fn to_big_endian(ne: Self) -> Self::BigEndian

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Primitive for i16

Source§

impl Primitive for i32

Source§

impl Primitive for i64

Source§

impl Primitive for u16

Source§

impl Primitive for u32

Source§

impl Primitive for u64

Implementors§