pub trait ElementOwned: Element {
// Required method
fn from_array_bytes(
data_type: &DataType,
bytes: ArrayBytes<'_>,
) -> Result<Vec<Self>, ElementError>;
}Expand description
A trait representing an owned array element type.
Required Methods§
Sourcefn from_array_bytes(
data_type: &DataType,
bytes: ArrayBytes<'_>,
) -> Result<Vec<Self>, ElementError>
fn from_array_bytes( data_type: &DataType, bytes: ArrayBytes<'_>, ) -> Result<Vec<Self>, ElementError>
Convert bytes into a Vec<ElementOwned>.
§Errors
Returns an ElementError if the data type is incompatible with Element.
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 ElementOwned for bool
impl ElementOwned for bool
fn from_array_bytes( data_type: &DataType, bytes: ArrayBytes<'_>, ) -> Result<Vec<Self>, ElementError>
Source§impl ElementOwned for f32
impl ElementOwned for f32
fn from_array_bytes( data_type: &DataType, bytes: ArrayBytes<'_>, ) -> Result<Vec<Self>, ElementError>
Source§impl ElementOwned for f64
impl ElementOwned for f64
fn from_array_bytes( data_type: &DataType, bytes: ArrayBytes<'_>, ) -> Result<Vec<Self>, ElementError>
Source§impl ElementOwned for i8
impl ElementOwned for i8
fn from_array_bytes( data_type: &DataType, bytes: ArrayBytes<'_>, ) -> Result<Vec<Self>, ElementError>
Source§impl ElementOwned for i16
impl ElementOwned for i16
fn from_array_bytes( data_type: &DataType, bytes: ArrayBytes<'_>, ) -> Result<Vec<Self>, ElementError>
Source§impl ElementOwned for i32
impl ElementOwned for i32
fn from_array_bytes( data_type: &DataType, bytes: ArrayBytes<'_>, ) -> Result<Vec<Self>, ElementError>
Source§impl ElementOwned for i64
impl ElementOwned for i64
fn from_array_bytes( data_type: &DataType, bytes: ArrayBytes<'_>, ) -> Result<Vec<Self>, ElementError>
Source§impl ElementOwned for u8
impl ElementOwned for u8
fn from_array_bytes( data_type: &DataType, bytes: ArrayBytes<'_>, ) -> Result<Vec<Self>, ElementError>
Source§impl ElementOwned for u16
impl ElementOwned for u16
fn from_array_bytes( data_type: &DataType, bytes: ArrayBytes<'_>, ) -> Result<Vec<Self>, ElementError>
Source§impl ElementOwned for u32
impl ElementOwned for u32
fn from_array_bytes( data_type: &DataType, bytes: ArrayBytes<'_>, ) -> Result<Vec<Self>, ElementError>
Source§impl ElementOwned for u64
impl ElementOwned for u64
fn from_array_bytes( data_type: &DataType, bytes: ArrayBytes<'_>, ) -> Result<Vec<Self>, ElementError>
Source§impl ElementOwned for String
impl ElementOwned for String
fn from_array_bytes( data_type: &DataType, bytes: ArrayBytes<'_>, ) -> Result<Vec<Self>, ElementError>
Source§impl ElementOwned for Vec<u8>
impl ElementOwned for Vec<u8>
fn from_array_bytes( data_type: &DataType, bytes: ArrayBytes<'_>, ) -> Result<Vec<Self>, ElementError>
Source§impl ElementOwned for DateTime<Utc>
Available on crate feature chrono only.
impl ElementOwned for DateTime<Utc>
Available on crate feature
chrono only.fn from_array_bytes( data_type: &DataType, bytes: ArrayBytes<'_>, ) -> Result<Vec<Self>, ElementError>
Source§impl ElementOwned for TimeDelta
Available on crate feature chrono only.
impl ElementOwned for TimeDelta
Available on crate feature
chrono only.fn from_array_bytes( data_type: &DataType, bytes: ArrayBytes<'_>, ) -> Result<Vec<Self>, ElementError>
Source§impl ElementOwned for F8E4M3
impl ElementOwned for F8E4M3
fn from_array_bytes( data_type: &DataType, bytes: ArrayBytes<'_>, ) -> Result<Vec<Self>, ElementError>
Source§impl ElementOwned for F8E5M2
impl ElementOwned for F8E5M2
fn from_array_bytes( data_type: &DataType, bytes: ArrayBytes<'_>, ) -> Result<Vec<Self>, ElementError>
Source§impl ElementOwned for bf16
impl ElementOwned for bf16
fn from_array_bytes( data_type: &DataType, bytes: ArrayBytes<'_>, ) -> Result<Vec<Self>, ElementError>
Source§impl ElementOwned for f16
impl ElementOwned for f16
fn from_array_bytes( data_type: &DataType, bytes: ArrayBytes<'_>, ) -> Result<Vec<Self>, ElementError>
Source§impl ElementOwned for SignedDuration
Available on crate feature jiff only.
impl ElementOwned for SignedDuration
Available on crate feature
jiff only.fn from_array_bytes( data_type: &DataType, bytes: ArrayBytes<'_>, ) -> Result<Vec<Self>, ElementError>
Source§impl ElementOwned for Timestamp
Available on crate feature jiff only.
impl ElementOwned for Timestamp
Available on crate feature
jiff only.