arrow_array::types::bytes

Trait ByteArrayNativeType

Source
pub trait ByteArrayNativeType:
    Debug
    + Send
    + Sync {
    // Required methods
    fn from_bytes_checked(b: &[u8]) -> Option<&Self>;
    unsafe fn from_bytes_unchecked(b: &[u8]) -> &Self;
}

Required Methods§

Source

fn from_bytes_checked(b: &[u8]) -> Option<&Self>

Source

unsafe fn from_bytes_unchecked(b: &[u8]) -> &Self

§Safety

b must be a valid byte sequence for Self

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 ByteArrayNativeType for str

Source§

fn from_bytes_checked(b: &[u8]) -> Option<&Self>

Source§

unsafe fn from_bytes_unchecked(b: &[u8]) -> &Self

Source§

impl ByteArrayNativeType for [u8]

Source§

fn from_bytes_checked(b: &[u8]) -> Option<&Self>

Source§

unsafe fn from_bytes_unchecked(b: &[u8]) -> &Self

Implementors§