polars_arrow::types

Trait BitChunk

Source
pub trait BitChunk:
    Sealed
    + PrimInt
    + NativeType
    + Binary
    + ShlAssign
    + Not<Output = Self>
    + ShrAssign<usize>
    + ShlAssign<usize>
    + Shl<usize, Output = Self>
    + 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.

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 BitChunk for u8

Source§

fn to_ne_bytes(self) -> Self::Bytes

Source§

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

Source§

impl BitChunk for u16

Source§

fn to_ne_bytes(self) -> Self::Bytes

Source§

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

Source§

impl BitChunk for u32

Source§

fn to_ne_bytes(self) -> Self::Bytes

Source§

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

Source§

impl BitChunk for u64

Source§

fn to_ne_bytes(self) -> Self::Bytes

Source§

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

Implementors§