Struct hdf5::Encoder [] [src]

pub struct Encoder<'l> {
    // some fields omitted
}

An encoder.

Encoders are suitable for storing structural data.

Methods

impl<'l> Encoder<'l>
[src]

fn new(file: &'l File, name: &str) -> Encoder<'l>

Create an encoder.

If there exists a dataset with the same name, it will be removed from the file structure, and a new dataset will be created. This operation, however, does not reclaim the corresponding space. See Section 5.5.2 in HDF5 User’s Guide for further details.

Trait Implementations

impl<'l> Encoder for Encoder<'l>
[src]

type Error = Error

fn emit_bool(&mut self, value: bool) -> Result<()>

fn emit_char(&mut self, value: char) -> Result<()>

fn emit_enum<F>(&mut self, _: &str, next: F) -> Result<()> where F: FnOnce(&mut Self) -> Result<()>

fn emit_enum_struct_variant<F>(&mut self, _: &str, _: usize, _: usize, _: F) -> Result<()> where F: FnOnce(&mut Self) -> Result<()>

fn emit_enum_struct_variant_field<F>(&mut self, _: &str, _: usize, _: F) -> Result<()> where F: FnOnce(&mut Self) -> Result<()>

fn emit_enum_variant<F>(&mut self, _: &str, id: usize, _: usize, _: F) -> Result<()> where F: FnOnce(&mut Self) -> Result<()>

fn emit_enum_variant_arg<F>(&mut self, _: usize, _: F) -> Result<()> where F: FnOnce(&mut Self) -> Result<()>

fn emit_f32(&mut self, value: f32) -> Result<()>

fn emit_f64(&mut self, value: f64) -> Result<()>

fn emit_i8(&mut self, value: i8) -> Result<()>

fn emit_i16(&mut self, value: i16) -> Result<()>

fn emit_i32(&mut self, value: i32) -> Result<()>

fn emit_i64(&mut self, value: i64) -> Result<()>

fn emit_u64(&mut self, value: u64) -> Result<()>

fn emit_isize(&mut self, value: isize) -> Result<()>

fn emit_map<F>(&mut self, _: usize, _: F) -> Result<()> where F: FnOnce(&mut Self) -> Result<()>

fn emit_map_elt_key<F>(&mut self, _: usize, _: F) -> Result<()> where F: FnOnce(&mut Self) -> Result<()>

fn emit_map_elt_val<F>(&mut self, _: usize, _: F) -> Result<()> where F: FnOnce(&mut Self) -> Result<()>

fn emit_nil(&mut self) -> Result<()>

fn emit_option<F>(&mut self, next: F) -> Result<()> where F: FnOnce(&mut Self) -> Result<()>

fn emit_option_none(&mut self) -> Result<()>

fn emit_option_some<F>(&mut self, next: F) -> Result<()> where F: FnOnce(&mut Self) -> Result<()>

fn emit_seq<F>(&mut self, _: usize, next: F) -> Result<()> where F: FnOnce(&mut Self) -> Result<()>

fn emit_seq_elt<F>(&mut self, _: usize, next: F) -> Result<()> where F: FnOnce(&mut Self) -> Result<()>

fn emit_str(&mut self, value: &str) -> Result<()>

fn emit_struct<F>(&mut self, _: &str, _: usize, next: F) -> Result<()> where F: FnOnce(&mut Self) -> Result<()>

fn emit_struct_field<F>(&mut self, name: &str, _: usize, next: F) -> Result<()> where F: FnOnce(&mut Self) -> Result<()>

fn emit_tuple<F>(&mut self, _: usize, _: F) -> Result<()> where F: FnOnce(&mut Self) -> Result<()>

fn emit_tuple_arg<F>(&mut self, _: usize, _: F) -> Result<()> where F: FnOnce(&mut Self) -> Result<()>

fn emit_tuple_struct<F>(&mut self, _: &str, _: usize, _: F) -> Result<()> where F: FnOnce(&mut Self) -> Result<()>

fn emit_tuple_struct_arg<F>(&mut self, _: usize, _: F) -> Result<()> where F: FnOnce(&mut Self) -> Result<()>

fn emit_u8(&mut self, value: u8) -> Result<()>

fn emit_u16(&mut self, value: u16) -> Result<()>

fn emit_u32(&mut self, value: u32) -> Result<()>

fn emit_usize(&mut self, value: usize) -> Result<()>