pub trait SizeLimit {
// Required methods
fn add(&mut self, n: u64) -> Result<()>;
fn limit(&self) -> Option<u64>;
}
Expand description
A trait for stopping serialization and deserialization when a certain limit has been reached.
pub trait SizeLimit {
// Required methods
fn add(&mut self, n: u64) -> Result<()>;
fn limit(&self) -> Option<u64>;
}
A trait for stopping serialization and deserialization when a certain limit has been reached.