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