Trait hdf5::Data
[−]
[src]
pub trait Data { fn as_bytes(&self) -> &[u8]; fn datatype(&self) -> Datatype; fn dimensions(&self) -> &[usize]; }
A type suitable for storing.
Required Methods
fn as_bytes(&self) -> &[u8]
Return the raw data.
fn datatype(&self) -> Datatype
Return the datatype.
fn dimensions(&self) -> &[usize]
Return the dimensions.
Implementors
impl Data for bool
impl Data for char
impl Data for f32
impl Data for f64
impl Data for i8
impl Data for u8
impl Data for i16
impl Data for u16
impl Data for i32
impl Data for u32
impl Data for i64
impl Data for u64
impl Data for isize
impl Data for usize
impl<'l, T: Data> Data for &'l T
impl<'l, T> Data for Slice<'l, T>