pub fn fill_value<T: H5Type>(&self) -> Result<Option<T>> {
        h5lock!({
            let defined: *mut H5D_fill_value_t = &mut H5D_fill_value_t::H5D_FILL_VALUE_UNDEFINED;
            let dcpl_id = self.dcpl_id()?;
            h5try!(H5Pfill_value_defined(dcpl_id, defined));
            match *defined {
                H5D_fill_value_t::H5D_FILL_VALUE_ERROR => fail!("Invalid fill value"),
                H5D_fill_value_t::H5D_FILL_VALUE_UNDEFINED => Ok(None),
                _ => {
                    let datatype = Datatype::from_type::<T>()?;
                    let mut value = mem::MaybeUninit::<T>::uninit();
                    h5try!(
                        H5Pget_fill_value(dcpl_id, datatype.id(), value.as_mut_ptr() as *mut _,)
                    );
                    Ok(Some(value.assume_init()))
                }
            }
        })
    }
/// Returns default fill value for the dataset if such value is set. Note that conversion
/// to the requested type is done by HDF5 which may result in loss of precision for
/// floating-point values if the datatype differs from the datatype of of the dataset.
Returns default fill value for the dataset if such value is set. Note that conversion
to the requested type is done by HDF5 which may result in loss of precision for
floating-point values if the datatype differs from the datatype of of the dataset.
Returns default fill value for the dataset if such value is set . Note that conversion to the requested type is done by HDF5 which may result in loss of precision for floating - point values if the datatype differs from the datatype of of the dataset .
pub fn fill_value<T: H5Type>(&self) -> Result<Option<T>> {
        h5lock!({
            let defined: *mut H5D_fill_value_t = &mut H5D_fill_value_t::H5D_FILL_VALUE_UNDEFINED;
            let dcpl_id = self.dcpl_id()?;
            h5try!(H5Pfill_value_defined(dcpl_id, defined));
            match *defined {
                H5D_fill_value_t::H5D_FILL_VALUE_ERROR => fail!("Invalid fill value"),
                H5D_fill_value_t::H5D_FILL_VALUE_UNDEFINED => Ok(None),
                _ => {
                    let datatype = Datatype::from_type::<T>()?;
                    let mut value = mem::MaybeUninit::<T>::uninit();
                    h5try!(
                        H5Pget_fill_value(dcpl_id, datatype.id(), value.as_mut_ptr() as *mut _,)
                    );
                    Ok(Some(value.assume_init()))
                }
            }
        })
    }
pub fn fill_value < T : H5Type > ( & self ) -> Result < Option < T > > { h5lock ! ( { let defined mut H5D_fill_value_t mut H5D_fill_value_t H5D_FILL_VALUE_UNDEFINED let dcpl_id self dcpl_id ( ) h5try ( H5Pfill_value_defined ( dcpl_id defined ) ) match defined { H5D_fill_value_t H5D_FILL_VALUE_ERROR fail ( " " ) H5D_fill_value_t H5D_FILL_VALUE_UNDEFINED Ok ( None ) { let datatype Datatype from_type T ( ) let mut value mem MaybeUninit T uninit ( ) h5try ( H5Pget_fill_value ( dcpl_id datatype id ( ) value as_mut_ptr ( ) as mut ) ) Ok ( Some ( value assume_init ( ) ) ) } } } ) }
Returns default fill value for the dataset if such value is set.
Returns default fill value for the dataset if such value is set .
&self
&self