Trait sqlx_core::io::ReadBuf

source ·
pub trait ReadBuf: BufMut {
    // Required method
    fn init_mut(&mut self) -> &mut [u8] ;
}
Expand description

An extension for BufMut for getting a writeable buffer in safe code.

Required Methods§

source

fn init_mut(&mut self) -> &mut [u8]

Get the full capacity of this buffer as a safely initialized slice.

Implementations on Foreign Types§

source§

impl ReadBuf for &mut [u8]

source§

fn init_mut(&mut self) -> &mut [u8]

source§

impl ReadBuf for BytesMut

source§

fn init_mut(&mut self) -> &mut [u8]

Implementors§