Struct hdf5::File
[−]
[src]
pub struct File { // some fields omitted }
A file.
Methods
impl File
[src]
fn new<T: AsRef<Path>>(path: T) -> Result<File>
Create a new file.
If the file already exists, its content will be truncated.
fn open<T: AsRef<Path>>(path: T) -> Result<File>
Open an existing file.
fn encode<T: Encodable>(&self, name: &str, data: T) -> Result<()>
Encode data.
The function is a shortcut for Encoder::new
followed by
Encodable::encode
.
fn write<T: IntoData>(&self, name: &str, data: T) -> Result<()>
Write data.
The function is a shortcut for Writer::new
followed by
Writer::write
.