[−][src]Struct hdf5::FileBuilder
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]
&self,
filename: P,
mode: OpenMode
) -> Result<File>
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]
F: Fn(&mut FileAccessBuilder) -> &mut FileAccessBuilder,
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]
F: Fn(&mut FileAccessBuilder) -> &mut FileAccessBuilder,
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]
F: Fn(&mut FileCreateBuilder) -> &mut FileCreateBuilder,
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]
F: Fn(&mut FileCreateBuilder) -> &mut FileCreateBuilder,
A short alias for with_create_plist()
.
Trait Implementations
impl Clone for FileBuilder
[src]
fn clone(&self) -> FileBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FileBuilder
[src]
impl Default for FileBuilder
[src]
fn default() -> FileBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for FileBuilder
[src]
impl Send for FileBuilder
[src]
impl Sync for FileBuilder
[src]
impl Unpin for FileBuilder
[src]
impl UnwindSafe for FileBuilder
[src]
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,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,