Trait hdf5_rs::prelude::ToDatatype
[−]
[src]
pub trait ToDatatype: Clone { fn to_datatype() -> Result<Datatype>; fn from_raw_ptr(buf: *const c_void) -> Self; fn with_raw_ptr<T, F: Fn(*const c_void) -> T>(value: Self, func: F) -> T; }
A trait for native types that are convertible to HDF5 datatypes.
Required Methods
fn to_datatype() -> Result<Datatype>
fn from_raw_ptr(buf: *const c_void) -> Self
fn with_raw_ptr<T, F: Fn(*const c_void) -> T>(value: Self, func: F) -> T
Implementors
impl ToDatatype for bool
impl ToDatatype for i8
impl ToDatatype for i16
impl ToDatatype for i32
impl ToDatatype for i64
impl ToDatatype for u8
impl ToDatatype for u16
impl ToDatatype for u32
impl ToDatatype for u64
impl ToDatatype for f32
impl ToDatatype for f64
impl ToDatatype for usize
impl ToDatatype for isize