Trait parquet::data_type::SliceAsBytes [−][src]
pub trait SliceAsBytes: Sized { 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
fn slice_as_bytes(self_: &[Self]) -> &[u8]
[src]
fn slice_as_bytes(self_: &[Self]) -> &[u8]
[src]Returns slice of bytes for a slice of this data type.
unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]
[src]
unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]
[src]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
Implementations on Foreign Types
impl SliceAsBytes for i8
[src]
impl SliceAsBytes for i8
[src]fn slice_as_bytes(self_: &[Self]) -> &[u8]
[src]
unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]
[src]
impl SliceAsBytes for i16
[src]
impl SliceAsBytes for i16
[src]fn slice_as_bytes(self_: &[Self]) -> &[u8]
[src]
unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]
[src]
impl SliceAsBytes for i32
[src]
impl SliceAsBytes for i32
[src]fn slice_as_bytes(self_: &[Self]) -> &[u8]
[src]
unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]
[src]
impl SliceAsBytes for i64
[src]
impl SliceAsBytes for i64
[src]fn slice_as_bytes(self_: &[Self]) -> &[u8]
[src]
unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]
[src]
impl SliceAsBytes for u8
[src]
impl SliceAsBytes for u8
[src]fn slice_as_bytes(self_: &[Self]) -> &[u8]
[src]
unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]
[src]
impl SliceAsBytes for u16
[src]
impl SliceAsBytes for u16
[src]fn slice_as_bytes(self_: &[Self]) -> &[u8]
[src]
unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]
[src]
impl SliceAsBytes for u32
[src]
impl SliceAsBytes for u32
[src]fn slice_as_bytes(self_: &[Self]) -> &[u8]
[src]
unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]
[src]
impl SliceAsBytes for u64
[src]
impl SliceAsBytes for u64
[src]fn slice_as_bytes(self_: &[Self]) -> &[u8]
[src]
unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]
[src]
impl SliceAsBytes for f32
[src]
impl SliceAsBytes for f32
[src]fn slice_as_bytes(self_: &[Self]) -> &[u8]
[src]
unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]
[src]
impl SliceAsBytes for f64
[src]
impl SliceAsBytes for f64
[src]fn slice_as_bytes(self_: &[Self]) -> &[u8]
[src]
unsafe fn slice_as_bytes_mut(self_: &mut [Self]) -> &mut [u8]
[src]
impl SliceAsBytes for bool
[src]
impl SliceAsBytes for bool
[src]fn slice_as_bytes(_self: &[Self]) -> &[u8]
[src]
unsafe fn slice_as_bytes_mut(_self: &mut [Self]) -> &mut [u8]
[src]
Implementors
impl SliceAsBytes for ByteArray
[src]
impl SliceAsBytes for ByteArray
[src]fn slice_as_bytes(_self: &[Self]) -> &[u8]
[src]
unsafe fn slice_as_bytes_mut(_self: &mut [Self]) -> &mut [u8]
[src]
impl SliceAsBytes for FixedLenByteArray
[src]
impl SliceAsBytes for FixedLenByteArray
[src]fn slice_as_bytes(_self: &[Self]) -> &[u8]
[src]
unsafe fn slice_as_bytes_mut(_self: &mut [Self]) -> &mut [u8]
[src]
impl SliceAsBytes for Int96
[src]
impl SliceAsBytes for Int96
[src]