Trait columnar::common::AsBytes

source ·
pub trait AsBytes<'a> {
    // Required method
    fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>;

    // Provided method
    fn length_in_words(&self) -> usize { ... }
}
Expand description

A type that can be viewed as byte slices with lifetime 'a.

Implementors of this trait almost certainly reference the lifetime 'a themselves.

Required Methods§

source

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

Presents self as a sequence of byte slices, with their required alignment.

Provided Methods§

source

fn length_in_words(&self) -> usize

The number of u64 words required to record self as aligned bytes.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

source§

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

source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

source§

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

source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

source§

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

source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

source§

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

source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

source§

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

source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

source§

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

source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

source§

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

source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

source§

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

source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

source§

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

source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

source§

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

source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

source§

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

source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

source§

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

source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

source§

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

source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

source§

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

source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

source§

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

source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

source§

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

source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

source§

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

source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

source§

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

source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

source§

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

source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

source§

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

source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

source§

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

source§

fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>

Implementors§

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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