Trait bincode::config::trailing::TrailingBytes
source · pub trait TrailingBytes {
// Required method
fn check_end(reader: &SliceReader<'_>) -> Result<()>;
}
Expand description
A trait for erroring deserialization if not all bytes were read.
Required Methods§
sourcefn check_end(reader: &SliceReader<'_>) -> Result<()>
fn check_end(reader: &SliceReader<'_>) -> Result<()>
Checks a given slice reader to determine if deserialization used all bytes in the slice.
Object Safety§
This trait is not object safe.