use de::read::SliceReader; use {ErrorKind, Result};
/// A trait for erroring deserialization if not all bytes were read. pubtrait TrailingBytes { /// Checks a given slice reader to determine if deserialization used all bytes in the slice. fn check_end(reader: &SliceReader) -> Result<()>;
}
/// A TrailingBytes config that will allow trailing bytes in slices after deserialization. #[derive(Copy, Clone)] pubstruct AllowTrailing;
/// A TrailingBytes config that will cause bincode to produce an error if bytes are left over in the slice when deserialization is complete.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.