[−][src]Struct hdf5::Writer
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]
&self,
arr: A,
slice: &SliceInfo<S, D>
) -> Result<()> where
A: Into<ArrayView<'b, T, D>>,
T: H5Type,
S: AsRef<[SliceOrIndex]>,
D: Dimension,
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]
A: Into<ArrayView<'b, T, D>>,
T: H5Type,
D: Dimension,
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]
A: Into<ArrayView1<'b, T>>,
T: H5Type,
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,