Skip to main content

impl_fill

Macro impl_fill 

Source
macro_rules! impl_fill {
    () => { ... };
    (to_le! plain $x:ident) => { ... };
    (to_le! wrapping $x:ident) => { ... };
    (fill_slice! $t:ty, $to_le:tt) => { ... };
    ($t:ty) => { ... };
    ($t:ty, $($tt:ty,)*) => { ... };
}
Expand description

Implement Fill for given type $t.

ยงSafety

All bit patterns of [u8; size_of::<$t>()] must represent values of $t.