pub fn write<'b, A, T, D>(&self, arr: A) -> Result<()>
    where
        A: Into<ArrayView<'b, T, D>>,
        T: H5Type,
        D: ndarray::Dimension,
    {
        let view = arr.into();
        ensure!(
            view.is_standard_layout(),
            "input array is not in standard layout or is not contiguous"
        );

        let src = view.shape();
        let dst = &*self.obj.get_shape()?;
        if src != dst {
            fail!("shape mismatch when writing: memory = {:?}, destination = {:?}", src, dst);
        }

        self.write_from_buf(view.as_ptr(), None, None)
    }
/// Writes an n-dimensional array view into a dataset/attribute.
///
/// The shape of the view must match the shape of the dataset/attribute exactly.
/// The input argument must be convertible to an array view (this includes slices).
Writes an n-dimensional array view into a dataset/attribute.
The shape of the view must match the shape of the dataset/attribute exactly.
The input argument must be convertible to an array view (this includes slices).
Writes an n - dimensional array view into a dataset / attribute . The shape of the view must match the shape of the dataset / attribute exactly . The input argument must be convertible to an array view ( this includes slices ) .
pub fn write<'b, A, T, D>(&self, arr: A) -> Result<()>
    where
        A: Into<ArrayView<'b, T, D>>,
        T: H5Type,
        D: ndarray::Dimension,
    {
        let view = arr.into();
        ensure!(
            view.is_standard_layout(),
            "input array is not in standard layout or is not contiguous"
        );
        let src = view.shape();
        let dst = &*self.obj.get_shape()?;
        if src != dst {
            fail!("shape mismatch when writing: memory = {:?}, destination = {:?}", src, dst);
        }
        self.write_from_buf(view.as_ptr(), None, None)
    }
pub fn write < ' b , A , T , D > ( & self , arr : A ) -> Result < ( ) > where A : Into < ArrayView < ' b , T , D > > , T : H5Type , D : ndarray :: Dimension , { let view = arr . into ( ) ; ensure ! ( view is_standard_layout ( ) " " ) ; let src = view . shape ( ) ; let dst = & * self . obj . get_shape ( ) ? ; if src != dst { fail ! ( " " src dst ) ; } self . write_from_buf ( view . as_ptr ( ) , None , None ) }
Writes an n-dimensional array view into a dataset/attribute.
Writes an n - dimensional array view into a dataset / attribute .
&self
arr
A
&self
arr
A