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