Skip to main content

element_size_bytes

Function element_size_bytes 

Source
pub fn element_size_bytes(data_type: &DataType) -> Result<usize, BackendError>
Expand description

Fixed scalar element size in bytes for DataType.

ยงErrors

Returns when the type has no fixed size (e.g. unsized or dynamic).