sqlx_core::io

Trait 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§