polars_arrow::types

Trait AlignedBytesCast

Source
pub unsafe trait AlignedBytesCast<B: AlignedBytes>: Pod { }
Expand description

Define that a type has the same byte alignment and size as B.

§Safety

This is safe to implement if both types have the same alignment and size.

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 AlignedBytesCast<Bytes1Alignment1> for i8

Source§

impl AlignedBytesCast<Bytes1Alignment1> for u8

Source§

impl AlignedBytesCast<Bytes2Alignment2> for i16

Source§

impl AlignedBytesCast<Bytes2Alignment2> for u16

Source§

impl AlignedBytesCast<Bytes4Alignment4> for f32

Source§

impl AlignedBytesCast<Bytes4Alignment4> for i32

Source§

impl AlignedBytesCast<Bytes4Alignment4> for u32

Source§

impl AlignedBytesCast<Bytes8Alignment8> for f64

Source§

impl AlignedBytesCast<Bytes8Alignment8> for i64

Source§

impl AlignedBytesCast<Bytes8Alignment8> for u64

Source§

impl AlignedBytesCast<Bytes12Alignment4> for [u32; 3]

Source§

impl AlignedBytesCast<Bytes16Alignment16> for i128

Source§

impl AlignedBytesCast<Bytes16Alignment16> for u128

Implementors§