pub trait Vlq: Sized {
// Required methods
fn from_reader<R: Read>(reader: &mut R) -> Result<Self>;
fn to_writer<W: Write>(self, writer: &mut W) -> Result<()>;
}
Expand description
Trait applied to all types that can be encoded as VLQ’s.
Required Methods§
Sourcefn from_reader<R: Read>(reader: &mut R) -> Result<Self>
fn from_reader<R: Read>(reader: &mut R) -> Result<Self>
Read a variable-length quantity from a reader.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.