SwapBytes

Trait SwapBytes 

Source
pub trait SwapBytes {
    // Required method
    fn swap_bytes_mut(&mut self);
}
Expand description

Trait implement by things that can swap their byte ordering

Required Methods§

Source

fn swap_bytes_mut(&mut self)

Swaps the byte ordering of a value in-place

Implementations on Foreign Types§

Source§

impl SwapBytes for bool

Source§

impl SwapBytes for f32

Source§

impl SwapBytes for f64

Source§

impl SwapBytes for i8

Source§

impl SwapBytes for i16

Source§

impl SwapBytes for i32

Source§

impl SwapBytes for i64

Source§

impl SwapBytes for isize

Source§

impl SwapBytes for u8

Source§

impl SwapBytes for u16

Source§

impl SwapBytes for u32

Source§

impl SwapBytes for u64

Source§

impl SwapBytes for ()

Source§

impl SwapBytes for usize

Source§

impl<T> SwapBytes for *const T

Source§

impl<T> SwapBytes for *mut T

Source§

impl<T> SwapBytes for [T]
where T: SwapBytes,

Source§

impl<const LENGTH: usize, T> SwapBytes for [T; LENGTH]
where T: SwapBytes,

Implementors§