Trait mysql_common::misc::raw::bytes::BytesRepr[][src]

pub trait BytesRepr {
    type Ctx;

    const MAX_LEN: usize;
    const SIZE: Option<usize>;

    fn serialize(text: &[u8], buf: &mut Vec<u8>);
fn deserialize<'de>(
        ctx: Self::Ctx,
        buf: &mut ParseBuf<'de>
    ) -> Result<Cow<'de, [u8]>>; }
Expand description

Representation of a serialized bytes.

Associated Types

Associated Constants

Maximum length of bytes for this repr (depends on how lenght is stored).

Required methods

Implementation must check the length of the buffer if Self::SIZE.is_none().

Implementors