pub fn write_scalar<T: H5Type>(&self, val: &T) -> Result<()> {
        let ndim = self.obj.get_shape()?.ndim();
        ensure!(ndim == 0, "ndim mismatch: expected scalar, got {}", ndim);
        self.write_from_buf(val as *const _, None, None)
    }
/// Writes a scalar dataset/attribute.
Writes a scalar dataset/attribute.
Writes a scalar dataset / attribute .
pub fn write_scalar<T: H5Type>(&self, val: &T) -> Result<()> {
        let ndim = self.obj.get_shape()?.ndim();
        ensure!(ndim == 0, "ndim mismatch: expected scalar, got {}", ndim);
        self.write_from_buf(val as *const _, None, None)
    }
pub fn write_scalar < T : H5Type > ( & self , val : & T ) -> Result < ( ) > { let ndim = self . obj . get_shape ( ) ? . ndim ( ) ; ensure ! ( ndim 0 " " ndim ) ; self . write_from_buf ( val as * const _ , None , None ) }
Writes a scalar dataset/attribute.
Writes a scalar dataset / attribute .
&self
val
&T
&self
val
&T