Skip to main content

VarIntWrite

Trait VarIntWrite 

Source
pub trait VarIntWrite: Write {
    // Provided methods
    fn write_varint(&mut self, value: i32) -> Result<(), CodecError> { ... }
    fn write_varint_with_size(
        &mut self,
        value: i32,
    ) -> Result<usize, CodecError> { ... }
}

Provided Methods§

Source

fn write_varint(&mut self, value: i32) -> Result<(), CodecError>

Source

fn write_varint_with_size(&mut self, value: i32) -> Result<usize, CodecError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<W: Write> VarIntWrite for W