[][src]Struct hdf5::Writer

pub struct Writer<'a> { /* fields omitted */ }

Implementations

impl<'a> Writer<'a>[src]

pub fn new(obj: &'a Container) -> Self[src]

Creates a writer for a dataset/attribute.

Any conversions (including hard/soft) are allowed by default.

pub fn conversion(self, conv: Conversion) -> Self[src]

Set maximum allowed conversion level.

pub fn no_convert(self) -> Self[src]

Disallow all conversions.

pub fn write_slice<'b, A, T, S, D>(
    &self,
    arr: A,
    slice: &SliceInfo<S, D>
) -> Result<()> where
    A: Into<ArrayView<'b, T, D>>,
    T: H5Type,
    S: AsRef<[SliceOrIndex]>,
    D: Dimension
[src]

Writes all data from the array arr into the given slice of the target dataset. The shape of arr must match the shape the set of elements included in the slice. If the array has a fixed number of dimensions, it must match the dimensionality of dataset. Use the multi-dimensional slice macro s![] from ndarray to conveniently create a multidimensional slice.

pub fn write<'b, A, T, D>(&self, arr: A) -> Result<()> where
    A: Into<ArrayView<'b, T, D>>,
    T: H5Type,
    D: Dimension
[src]

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_raw<'b, A, T>(&self, arr: A) -> Result<()> where
    A: Into<ArrayView1<'b, T>>,
    T: H5Type
[src]

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_scalar<T: H5Type>(&self, val: &T) -> Result<()>[src]

Writes a scalar dataset/attribute.

Trait Implementations

impl<'a> Debug for Writer<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Writer<'a>

impl<'a> Send for Writer<'a>

impl<'a> Sync for Writer<'a>

impl<'a> Unpin for Writer<'a>

impl<'a> !UnwindSafe for Writer<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.