EncodeVarintTo

Trait EncodeVarintTo 

Source
pub trait EncodeVarintTo {
    // Required method
    fn encode_varint_to<T: MutBits + ?Sized>(
        &self,
        out: &mut T,
    ) -> Result<usize, BitsError>;
}
Expand description

Encodes up to 9 bytes in the sqlite4 varint format.

Required Methods§

Source

fn encode_varint_to<T: MutBits + ?Sized>( &self, out: &mut T, ) -> Result<usize, BitsError>

Encodes up to 9 bytes in the sqlite4 varint format. Returns the number of bytes actually written.

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.

Implementors§

Source§

impl<V> EncodeVarintTo for V
where V: Into<IntegerValue> + Copy,