pub struct Compound { /* private fields */ }Expand description
A parsed compound file.
Implementations§
Source§impl Compound
impl Compound
Sourcepub fn open(source: &dyn Source) -> Result<Self>
pub fn open(source: &dyn Source) -> Result<Self>
Reads the whole source and parses its container structures.
pub fn open_source(source: Arc<dyn Source>) -> Result<Self>
pub fn from_bytes(data: Vec<u8>) -> Result<Self>
pub fn entries(&self) -> &[Entry]
Sourcepub fn stream_paths(&self) -> Vec<String>
pub fn stream_paths(&self) -> Vec<String>
Full paths (storage/stream) of every stream, in directory order.
Sourcepub fn entry(&self, path: &str) -> Option<&Entry>
pub fn entry(&self, path: &str) -> Option<&Entry>
The entry at path (components separated by /), matched ASCII
case-insensitively by a bounded search of each storage’s tree.
pub fn has_stream(&self, path: &str) -> bool
Auto Trait Implementations§
impl Freeze for Compound
impl RefUnwindSafe for Compound
impl Send for Compound
impl Sync for Compound
impl Unpin for Compound
impl UnsafeUnpin for Compound
impl UnwindSafe for Compound
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