pub trait BufMutExt: BufMut {
    type Final: Send + 'static;

    // Required method
    fn finalize(self) -> Self::Final;

    // Provided methods
    fn put_varint_u64(&mut self, v: u64)
       where Self: Sized { ... }
    fn put_varint_i64(&mut self, v: i64)
       where Self: Sized { ... }
}

Required Associated Types§

source

type Final: Send + 'static

Required Methods§

source

fn finalize(self) -> Self::Final

Provided Methods§

source

fn put_varint_u64(&mut self, v: u64)
where Self: Sized,

source

fn put_varint_i64(&mut self, v: i64)
where Self: Sized,

Implementations on Foreign Types§

source§

impl BufMutExt for SizeCounter

§

type Final = usize

source§

fn put_varint_u64(&mut self, v: u64)

source§

fn put_varint_i64(&mut self, v: i64)

source§

fn finalize(self) -> Self::Final

source§

impl BufMutExt for BytesMut

§

type Final = Bytes

source§

fn finalize(self) -> Self::Final

Implementors§