pub struct RootFile { /* private fields */ }Expand description
Implementations§
Source§impl RootFile
impl RootFile
Sourcepub fn open<P>(path: P) -> Result<Self, Error>
pub fn open<P>(path: P) -> Result<Self, Error>
Open file, use std::io::BufReader for reading, so it can only handle local files for now.
pub fn create<P>(path: P) -> Result<Self, Error>
pub fn close(&mut self) -> Result<(), Error>
pub fn get_tree(&mut self, name: &str) -> Result<ReaderTree, Error>
pub fn keys_name(&self) -> impl Iterator<Item = &str>
pub fn keys(&self) -> Vec<Key>
pub fn dir(&self) -> &TDirectoryFile
pub fn compression(&self) -> i32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RootFile
impl RefUnwindSafe for RootFile
impl !Send for RootFile
impl !Sync for RootFile
impl Unpin for RootFile
impl UnwindSafe for RootFile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more