Trait parquet::data_type::AsBytes

source ·
pub trait AsBytes {
    // Required method
    fn as_bytes(&self) -> &[u8] ;
}
Expand description

Converts an instance of data type to a slice of bytes as u8.

Required Methods§

source

fn as_bytes(&self) -> &[u8]

Returns slice of bytes for this data type.

Implementations on Foreign Types§

source§

impl AsBytes for bool

source§

fn as_bytes(&self) -> &[u8]

source§

impl AsBytes for f32

source§

fn as_bytes(&self) -> &[u8]

source§

impl AsBytes for f64

source§

fn as_bytes(&self) -> &[u8]

source§

impl AsBytes for i8

source§

fn as_bytes(&self) -> &[u8]

source§

impl AsBytes for i16

source§

fn as_bytes(&self) -> &[u8]

source§

impl AsBytes for i32

source§

fn as_bytes(&self) -> &[u8]

source§

impl AsBytes for i64

source§

fn as_bytes(&self) -> &[u8]

source§

impl AsBytes for str

source§

fn as_bytes(&self) -> &[u8]

source§

impl AsBytes for u8

source§

fn as_bytes(&self) -> &[u8]

source§

impl AsBytes for u16

source§

fn as_bytes(&self) -> &[u8]

source§

impl AsBytes for u32

source§

fn as_bytes(&self) -> &[u8]

source§

impl AsBytes for u64

source§

fn as_bytes(&self) -> &[u8]

source§

impl AsBytes for Vec<u8>

source§

fn as_bytes(&self) -> &[u8]

source§

impl AsBytes for [u8]

source§

fn as_bytes(&self) -> &[u8]

source§

impl<'a> AsBytes for &'a str

source§

fn as_bytes(&self) -> &[u8]

Implementors§