Trait parquet::data_type::SliceAsBytes

source ·
pub trait SliceAsBytes: Sized {
    // Required methods
    fn slice_as_bytes(self_: &[Self]) -> &[u8] ;
    unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8] ;
}
Expand description

Converts an slice of a data type to a slice of bytes.

Required Methods§

source

fn slice_as_bytes(self_: &[Self]) -> &[u8]

Returns slice of bytes for a slice of this data type.

source

unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]

Return the internal representation as a mutable slice

§Safety

If modified you are required to ensure the internal representation is valid and correct for the actual raw data

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl SliceAsBytes for bool

source§

fn slice_as_bytes(_self: &[Self]) -> &[u8]

source§

unsafe fn slice_as_bytes_mut(_self: &mut [Self]) -> &mut [u8]

source§

impl SliceAsBytes for f32

source§

fn slice_as_bytes(self_: &[Self]) -> &[u8]

source§

unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]

source§

impl SliceAsBytes for f64

source§

fn slice_as_bytes(self_: &[Self]) -> &[u8]

source§

unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]

source§

impl SliceAsBytes for i8

source§

fn slice_as_bytes(self_: &[Self]) -> &[u8]

source§

unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]

source§

impl SliceAsBytes for i16

source§

fn slice_as_bytes(self_: &[Self]) -> &[u8]

source§

unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]

source§

impl SliceAsBytes for i32

source§

fn slice_as_bytes(self_: &[Self]) -> &[u8]

source§

unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]

source§

impl SliceAsBytes for i64

source§

fn slice_as_bytes(self_: &[Self]) -> &[u8]

source§

unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]

source§

impl SliceAsBytes for u8

source§

fn slice_as_bytes(self_: &[Self]) -> &[u8]

source§

unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]

source§

impl SliceAsBytes for u16

source§

fn slice_as_bytes(self_: &[Self]) -> &[u8]

source§

unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]

source§

impl SliceAsBytes for u32

source§

fn slice_as_bytes(self_: &[Self]) -> &[u8]

source§

unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]

source§

impl SliceAsBytes for u64

source§

fn slice_as_bytes(self_: &[Self]) -> &[u8]

source§

unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]

Implementors§