/// Writes a 1-dimensional array view into a dataset/attribute in memory order.
///
/// The number of elements in the view must match the number of elements in the
/// destination dataset/attribute. The input argument must be convertible to a
/// 1-dimensional array view (this includes slices).
Writes a 1-dimensional array view into a dataset/attribute in memory order.
The number of elements in the view must match the number of elements in the
destination dataset/attribute. The input argument must be convertible to a
1-dimensional array view (this includes slices).
Writes a 1 - dimensional array view into a dataset / attribute in memory order . The number of elements in the view must match the number of elements in the destination dataset / attribute . The input argument must be convertible to a 1 - dimensional array view ( this includes slices ) .
pub fn write_raw<'b, A, T>(&self, arr: A) -> Result<()>
    where
        A: Into<ArrayView1<'b, T>>,
        T: H5Type,
    {
        let view = arr.into();
        ensure!(
            view.is_standard_layout(),
            "input array is not in standard layout or is not contiguous"
        );
        let src = view.len();
        let dst = self.obj.get_shape()?.size();
        if src != dst {
            fail!("length mismatch when writing: memory = {:?}, destination = {:?}", src, dst);
        }
        self.write_from_buf(view.as_ptr(), None, None)
    }
pub fn write_raw < ' b , A , T > ( & self , arr : A ) -> Result < ( ) > where A : Into < ArrayView1 < ' b , T > > , T : H5Type , { let view = arr . into ( ) ; ensure ! ( view is_standard_layout ( ) " " ) ; let src = view . len ( ) ; let dst = self . obj . get_shape ( ) ? . size ( ) ; if src != dst { fail ! ( " " src dst ) ; } self . write_from_buf ( view . as_ptr ( ) , None , None ) }
Writes a 1-dimensional array view into a dataset/attribute in memory order.
Writes a 1 - dimensional array view into a dataset / attribute in memory order .
&self
arr
A