ppv_lite86

Trait Swap64

Source
pub trait Swap64 {
    // Required methods
    fn swap1(self) -> Self;
    fn swap2(self) -> Self;
    fn swap4(self) -> Self;
    fn swap8(self) -> Self;
    fn swap16(self) -> Self;
    fn swap32(self) -> Self;
    fn swap64(self) -> Self;
}
Expand description

Exchange neigboring ranges of bits of the specified size

Required Methods§

Source

fn swap1(self) -> Self

Source

fn swap2(self) -> Self

Source

fn swap4(self) -> Self

Source

fn swap8(self) -> Self

Source

fn swap16(self) -> Self

Source

fn swap32(self) -> Self

Source

fn swap64(self) -> Self

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§