Trait columnar::common::FromBytes

source ·
pub trait FromBytes<'a> {
    // Required method
    fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self;
}
Expand description

A type that can be reconstituted from byte slices with lifetime 'a.

Implementors of this trait almost certainly reference the lifetime 'a themselves, unless they actively deserialize the bytes (vs sit on the slices, as if zero-copy).

Required Methods§

source

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

Reconstructs self from a sequence of correctly aligned and sized bytes slices.

The implementation is expected to consume the right number of items from the iterator, which may go on to be used by other implementations of FromBytes.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> FromBytes<'a> for &'a [f32]

source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

source§

impl<'a> FromBytes<'a> for &'a [f64]

source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

source§

impl<'a> FromBytes<'a> for &'a [i8]

source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

source§

impl<'a> FromBytes<'a> for &'a [i16]

source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

source§

impl<'a> FromBytes<'a> for &'a [i32]

source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

source§

impl<'a> FromBytes<'a> for &'a [i64]

source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

source§

impl<'a> FromBytes<'a> for &'a [i128]

source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

source§

impl<'a> FromBytes<'a> for &'a [u8]

source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

source§

impl<'a> FromBytes<'a> for &'a [u16]

source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

source§

impl<'a> FromBytes<'a> for &'a [u32]

source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

source§

impl<'a> FromBytes<'a> for &'a [u64]

source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

source§

impl<'a> FromBytes<'a> for &'a [u128]

source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

source§

impl<'a, A: FromBytes<'a>> FromBytes<'a> for (A,)

source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

source§

impl<'a, A: FromBytes<'a>, B: FromBytes<'a>> FromBytes<'a> for (A, B)

source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

source§

impl<'a, A: FromBytes<'a>, B: FromBytes<'a>, C: FromBytes<'a>> FromBytes<'a> for (A, B, C)

source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

source§

impl<'a, A: FromBytes<'a>, B: FromBytes<'a>, C: FromBytes<'a>, D: FromBytes<'a>> FromBytes<'a> for (A, B, C, D)

source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

source§

impl<'a, A: FromBytes<'a>, B: FromBytes<'a>, C: FromBytes<'a>, D: FromBytes<'a>, E: FromBytes<'a>> FromBytes<'a> for (A, B, C, D, E)

source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

source§

impl<'a, A: FromBytes<'a>, B: FromBytes<'a>, C: FromBytes<'a>, D: FromBytes<'a>, E: FromBytes<'a>, F: FromBytes<'a>> FromBytes<'a> for (A, B, C, D, E, F)

source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

source§

impl<'a, A: FromBytes<'a>, B: FromBytes<'a>, C: FromBytes<'a>, D: FromBytes<'a>, E: FromBytes<'a>, F: FromBytes<'a>, G: FromBytes<'a>> FromBytes<'a> for (A, B, C, D, E, F, G)

source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

source§

impl<'a, A: FromBytes<'a>, B: FromBytes<'a>, C: FromBytes<'a>, D: FromBytes<'a>, E: FromBytes<'a>, F: FromBytes<'a>, G: FromBytes<'a>, H: FromBytes<'a>> FromBytes<'a> for (A, B, C, D, E, F, G, H)

source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

source§

impl<'a, A: FromBytes<'a>, B: FromBytes<'a>, C: FromBytes<'a>, D: FromBytes<'a>, E: FromBytes<'a>, F: FromBytes<'a>, G: FromBytes<'a>, H: FromBytes<'a>, I: FromBytes<'a>> FromBytes<'a> for (A, B, C, D, E, F, G, H, I)

source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

source§

impl<'a, A: FromBytes<'a>, B: FromBytes<'a>, C: FromBytes<'a>, D: FromBytes<'a>, E: FromBytes<'a>, F: FromBytes<'a>, G: FromBytes<'a>, H: FromBytes<'a>, I: FromBytes<'a>, J: FromBytes<'a>> FromBytes<'a> for (A, B, C, D, E, F, G, H, I, J)

source§

fn from_bytes(bytes: &mut impl Iterator<Item = &'a [u8]>) -> Self

Implementors§

source§

impl<'a> FromBytes<'a> for Empties<&'a u64>

source§

impl<'a, BC: FromBytes<'a>, VC: FromBytes<'a>> FromBytes<'a> for Strings<BC, VC>

source§

impl<'a, CC: FromBytes<'a>, VC: FromBytes<'a>> FromBytes<'a> for RankSelect<CC, VC, &'a u64>

source§

impl<'a, CV: FromBytes<'a>> FromBytes<'a> for Isizes<CV>

source§

impl<'a, CV: FromBytes<'a>> FromBytes<'a> for Usizes<CV>

source§

impl<'a, SC: FromBytes<'a>, NC: FromBytes<'a>> FromBytes<'a> for Durations<SC, NC>

source§

impl<'a, SC: FromBytes<'a>, TC: FromBytes<'a>, CC: FromBytes<'a>, VC: FromBytes<'a>> FromBytes<'a> for Results<SC, TC, CC, VC, &'a u64>

source§

impl<'a, TC: FromBytes<'a>, BC: FromBytes<'a>> FromBytes<'a> for Vecs<TC, BC>

source§

impl<'a, TC: FromBytes<'a>, CC: FromBytes<'a>, VC: FromBytes<'a>> FromBytes<'a> for Options<TC, CC, VC, &'a u64>

source§

impl<'a, VC: FromBytes<'a>> FromBytes<'a> for Bools<VC, &'a u64>