pub struct File { /* private fields */ }
Expand description
Represent a file on the archive
Implementations§
Source§impl File
impl File
Sourcepub fn header_len(&self) -> usize
pub fn header_len(&self) -> usize
Return the file’s header length
Sourcepub fn write_to_buf<W: Write>(
&self,
buffer: &mut BufWriter<W>,
) -> WriteResult<()>
pub fn write_to_buf<W: Write>( &self, buffer: &mut BufWriter<W>, ) -> WriteResult<()>
Write file to given buffer, needs to be a mutable reference because it will be given to file’s children an so on;
Trait Implementations§
Auto Trait Implementations§
impl Freeze for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
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