Trait epserde::deser::read::ReadWithPos
source · pub trait ReadWithPos: ReadNoStd + Sized {
// Required methods
fn pos(&self) -> usize;
fn align<T: MaxSizeOf>(&mut self) -> Result<()>;
}
Expand description
A trait for ReadNoStd
that also keeps track of the current position.
This is needed because the Read
trait doesn’t have a seek
method and
std::io::Seek
would be a requirement much stronger than needed.
Required Methods§
Object Safety§
This trait is not object safe.