pub struct ReadConfig {
pub error_on_trailing_bytes: bool,
}Expand description
Configuration passed to a read function
Fields§
§error_on_trailing_bytes: boolSet this to true to make the serialize functions return ReadError::TrailingBytes if the reader is not empty.
Trait Implementations§
Source§impl Clone for ReadConfig
impl Clone for ReadConfig
Source§fn clone(&self) -> ReadConfig
fn clone(&self) -> ReadConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ReadConfig
impl Default for ReadConfig
Source§fn default() -> ReadConfig
fn default() -> ReadConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReadConfig
impl RefUnwindSafe for ReadConfig
impl Send for ReadConfig
impl Sync for ReadConfig
impl Unpin for ReadConfig
impl UnwindSafe for ReadConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more