Trait 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]

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.

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§