mysql_common::misc::raw::bytes

Type Alias BareU8Bytes

Source
pub type BareU8Bytes = BareBytes<{ _ }>;
Expand description

BareBytes with u8 len.

Aliased Type§

struct BareU8Bytes;

Trait Implementations

Source§

impl<const MAX_LEN: usize> BytesRepr for BareBytes<MAX_LEN>

Source§

const MAX_LEN: usize = MAX_LEN

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

const SIZE: Option<usize> = None

Source§

type Ctx = usize

Source§

fn serialize(text: &[u8], buf: &mut Vec<u8>)

Source§

fn deserialize<'de>( len: usize, buf: &mut ParseBuf<'de>, ) -> Result<Cow<'de, [u8]>>

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

impl<const MAX_LEN: usize> Clone for BareBytes<MAX_LEN>

Source§

fn clone(&self) -> BareBytes<MAX_LEN>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<const MAX_LEN: usize> Debug for BareBytes<MAX_LEN>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<const MAX_LEN: usize> Hash for BareBytes<MAX_LEN>

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<const MAX_LEN: usize> PartialEq for BareBytes<MAX_LEN>

Source§

fn eq(&self, other: &BareBytes<MAX_LEN>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const MAX_LEN: usize> Copy for BareBytes<MAX_LEN>

Source§

impl<const MAX_LEN: usize> Eq for BareBytes<MAX_LEN>

Source§

impl<const MAX_LEN: usize> StructuralPartialEq for BareBytes<MAX_LEN>