Skip to main content

EntityKeyBytes

Trait EntityKeyBytes 

Source
pub trait EntityKeyBytes {
    const BYTE_LEN: usize;

    // Required method
    fn write_bytes(&self, out: &mut [u8]);
}
Expand description

EntityKeyBytes

Required Associated Constants§

Source

const BYTE_LEN: usize

Exact number of bytes produced.

Required Methods§

Source

fn write_bytes(&self, out: &mut [u8])

Write bytes into the provided buffer.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl EntityKeyBytes for i8

Source§

const BYTE_LEN: usize

Source§

fn write_bytes(&self, out: &mut [u8])

Source§

impl EntityKeyBytes for i16

Source§

const BYTE_LEN: usize

Source§

fn write_bytes(&self, out: &mut [u8])

Source§

impl EntityKeyBytes for i32

Source§

const BYTE_LEN: usize

Source§

fn write_bytes(&self, out: &mut [u8])

Source§

impl EntityKeyBytes for i64

Source§

const BYTE_LEN: usize

Source§

fn write_bytes(&self, out: &mut [u8])

Source§

impl EntityKeyBytes for u8

Source§

const BYTE_LEN: usize

Source§

fn write_bytes(&self, out: &mut [u8])

Source§

impl EntityKeyBytes for u16

Source§

const BYTE_LEN: usize

Source§

fn write_bytes(&self, out: &mut [u8])

Source§

impl EntityKeyBytes for u32

Source§

const BYTE_LEN: usize

Source§

fn write_bytes(&self, out: &mut [u8])

Source§

impl EntityKeyBytes for u64

Source§

const BYTE_LEN: usize

Source§

fn write_bytes(&self, out: &mut [u8])

Source§

impl EntityKeyBytes for ()

Source§

const BYTE_LEN: usize = 0

Source§

fn write_bytes(&self, out: &mut [u8])

Implementors§