pub struct Hff<T>where
T: Debug,{ /* private fields */ }
Expand description
The Hff structure data. This is an immutable representation of the content of an Hff stream.
Implementations§
Source§impl<T> Hff<T>where
T: Debug,
impl<T> Hff<T>where
T: Debug,
Sourcepub fn new(
accessor: T,
header: Header,
tables: impl Into<Vec<Table>>,
chunks: impl Into<Vec<Chunk>>,
) -> Hff<T>
pub fn new( accessor: T, header: Header, tables: impl Into<Vec<Table>>, chunks: impl Into<Vec<Chunk>>, ) -> Hff<T>
Create a new Hff wrapper.
Sourcepub fn is_native_endian(&self) -> bool
pub fn is_native_endian(&self) -> bool
Return if the structure of the source was in native endian.
Sourcepub fn version(&self) -> Version
pub fn version(&self) -> Version
Return the version of the file structure the file was read from.
Sourcepub fn content_type(&self) -> Ecc
pub fn content_type(&self) -> Ecc
Get the content type of the container.
Sourcepub fn offset_to_data(&self) -> usize
pub fn offset_to_data(&self) -> usize
Get the offset from the start of the file to the start of the chunk data.
Sourcepub fn depth_first(&self) -> DepthFirstIter<'_, T>
pub fn depth_first(&self) -> DepthFirstIter<'_, T>
Get an iterator over the tables in depth first order.
Sourcepub fn tables_array(&self) -> &[Table]
pub fn tables_array(&self) -> &[Table]
Get access to the table array.
Sourcepub fn chunks_array(&self) -> &[Chunk]
pub fn chunks_array(&self) -> &[Chunk]
Get access to the chunk array.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Hff<T>where
T: Freeze,
impl<T> RefUnwindSafe for Hff<T>where
T: RefUnwindSafe,
impl<T> Send for Hff<T>where
T: Send,
impl<T> Sync for Hff<T>where
T: Sync,
impl<T> Unpin for Hff<T>where
T: Unpin,
impl<T> UnwindSafe for Hff<T>where
T: UnwindSafe,
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