BufMutExt

Trait BufMutExt 

Source
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

Source§

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

Source§

type Final = Bytes

Source§

fn finalize(self) -> Self::Final

Implementors§