Trait rerun::external::re_data_store::external::arrow2::types::BitChunk

source ·
pub trait BitChunk: Sealed + PrimInt<Output = Self, Output = Self> + NativeType + Binary + ShlAssign + Not + ShrAssign<usize> + ShlAssign<usize> + Shl<usize> + BitAndAssign {
    // Required methods
    fn to_ne_bytes(self) -> Self::Bytes;
    fn from_ne_bytes(v: Self::Bytes) -> Self;
}
Expand description

A chunk of bits. This is used to create masks of a given length whose width is 1 bit. In portable_simd notation, this corresponds to m1xY.

This (sealed) trait is implemented for u8, u16, u32 and u64.

Required Methods§

source

fn to_ne_bytes(self) -> Self::Bytes

convert itself into bytes.

source

fn from_ne_bytes(v: Self::Bytes) -> Self

convert itself from bytes.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl BitChunk for u8

source§

impl BitChunk for u16

source§

impl BitChunk for u32

source§

impl BitChunk for u64

Implementors§