mysql_common::packets

Type Alias ColumnDefinitionCatalog

Source
pub type ColumnDefinitionCatalog = ConstBytes<Catalog, 4>;

Aliased Type§

struct ColumnDefinitionCatalog(/* private fields */);

Trait Implementations

Source§

impl<T: Clone, const LEN: usize> Clone for ConstBytes<T, LEN>

Source§

fn clone(&self) -> ConstBytes<T, 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<T: Debug, const LEN: usize> Debug for ConstBytes<T, LEN>

Source§

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

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

impl<T: Default, const LEN: usize> Default for ConstBytes<T, LEN>

Source§

fn default() -> ConstBytes<T, LEN>

Returns the “default value” for a type. Read more
Source§

impl<T: Hash, const LEN: usize> Hash for ConstBytes<T, 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<'de, T, const LEN: usize> MyDeserialize<'de> for ConstBytes<T, LEN>
where T: Default + ConstBytesValue<LEN>,

Source§

const SIZE: Option<usize> = _

Size hint of a serialized value (in bytes), if it’s constant.
Source§

type Ctx = ()

Some structs defines deserialization in the context of another value. Read more
Source§

fn deserialize((): Self::Ctx, buf: &mut ParseBuf<'de>) -> Result<Self>

Deserializes self from the given buf. Read more
Source§

impl<T, const LEN: usize> MySerialize for ConstBytes<T, LEN>
where T: ConstBytesValue<LEN>,

Source§

fn serialize(&self, buf: &mut Vec<u8>)

Serializes self into the buf.
Source§

impl<T: PartialEq, const LEN: usize> PartialEq for ConstBytes<T, LEN>

Source§

fn eq(&self, other: &ConstBytes<T, 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<T: Copy, const LEN: usize> Copy for ConstBytes<T, LEN>

Source§

impl<T: Eq, const LEN: usize> Eq for ConstBytes<T, LEN>

Source§

impl<T, const LEN: usize> StructuralPartialEq for ConstBytes<T, LEN>