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§
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
Object Safety§
This trait is not object safe.