Trait cornflakes::WritableWithSize
source · [−]pub trait WritableWithSize {
fn write_to_with_count(
&self,
writer: &mut impl Writer,
num_bytes: usize
) -> Result<(), WriteError>
where
Self: Sized;
}Expand description
Writes a type as a specific number of bytes.
Required Methods
sourcefn write_to_with_count(
&self,
writer: &mut impl Writer,
num_bytes: usize
) -> Result<(), WriteError>where
Self: Sized,
fn write_to_with_count(
&self,
writer: &mut impl Writer,
num_bytes: usize
) -> Result<(), WriteError>where
Self: Sized,
Writes self as the given number of bytes to a Writer.