[][src]Struct hdf5::FileBuilder

pub struct FileBuilder { /* fields omitted */ }

File builder allowing to customize file access/creation property lists.

Implementations

impl FileBuilder[src]

pub fn new() -> Self[src]

Creates a new file builder with default property lists.

pub fn open<P: AsRef<Path>>(&self, filename: P) -> Result<File>[src]

Opens a file as read-only, file must exist.

pub fn open_rw<P: AsRef<Path>>(&self, filename: P) -> Result<File>[src]

Opens a file as read/write, file must exist.

pub fn create<P: AsRef<Path>>(&self, filename: P) -> Result<File>[src]

Creates a file, truncates if exists.

pub fn create_excl<P: AsRef<Path>>(&self, filename: P) -> Result<File>[src]

Creates a file, fails if exists.

pub fn append<P: AsRef<Path>>(&self, filename: P) -> Result<File>[src]

Opens a file as read/write if exists, creates otherwise.

pub fn open_as<P: AsRef<Path>>(
    &self,
    filename: P,
    mode: OpenMode
) -> Result<File>
[src]

Opens a file in a given mode.

pub fn set_access_plist(&mut self, fapl: &FileAccess) -> Result<&mut Self>[src]

Sets current file access property list to a given one.

pub fn set_fapl(&mut self, fapl: &FileAccess) -> Result<&mut Self>[src]

A short alias for set_access_plist().

pub fn access_plist(&mut self) -> &mut FileAccessBuilder[src]

Returns the builder object for the file access property list.

pub fn fapl(&mut self) -> &mut FileAccessBuilder[src]

A short alias for access_plist().

pub fn with_access_plist<F>(&mut self, func: F) -> &mut Self where
    F: Fn(&mut FileAccessBuilder) -> &mut FileAccessBuilder
[src]

Allows accessing the builder object for the file access property list.

pub fn with_fapl<F>(&mut self, func: F) -> &mut Self where
    F: Fn(&mut FileAccessBuilder) -> &mut FileAccessBuilder
[src]

A short alias for with_access_plist().

pub fn set_create_plist(&mut self, fcpl: &FileCreate) -> Result<&mut Self>[src]

Sets current file creation property list to a given one.

pub fn set_fcpl(&mut self, fcpl: &FileCreate) -> Result<&mut Self>[src]

A short alias for set_create_plist().

pub fn create_plist(&mut self) -> &mut FileCreateBuilder[src]

Returns the builder object for the file creation property list.

pub fn fcpl(&mut self) -> &mut FileCreateBuilder[src]

A short alias for create_plist().

pub fn with_create_plist<F>(&mut self, func: F) -> &mut Self where
    F: Fn(&mut FileCreateBuilder) -> &mut FileCreateBuilder
[src]

Allows accessing the builder object for the file creation property list.

pub fn with_fcpl<F>(&mut self, func: F) -> &mut Self where
    F: Fn(&mut FileCreateBuilder) -> &mut FileCreateBuilder
[src]

A short alias for with_create_plist().

Trait Implementations

impl Clone for FileBuilder[src]

impl Debug for FileBuilder[src]

impl Default for FileBuilder[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.