Trait bin_utils::WriteFixed

source ·
pub trait WriteFixed<const N: usize>where
    Self: Sized,{
    // Required method
    fn to_bytes(&self) -> [u8; N];
}
Expand description

A trait for writing data of fixed length.

Required Methods§

source

fn to_bytes(&self) -> [u8; N]

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<const N: usize, T> WriteFixed<{ T::SIZE * N }> for [T; N]where T: StaticallySized + WriteFixed<{ T::SIZE }> + Default + Copy,

source§

fn to_bytes(&self) -> [u8; { _ }]

Implementors§