pub struct Archive { /* private fields */ }
Implementations§
Source§impl Archive
impl Archive
pub fn new() -> Archive
pub fn add_file<P: AsRef<Path>>( &mut self, name: &str, path: P, ) -> Result<(), AddFileError>
pub fn write<W: Write>(&self, writer: &mut W) -> Result<(), ArchiveWriteError>
pub fn write_object_file<P: AsRef<Path>, P2: AsRef<Path>>( &self, output: P, ld: P2, target_arch: &str, ) -> Result<(), ArchiveWriteError>
Auto Trait Implementations§
impl Freeze for Archive
impl RefUnwindSafe for Archive
impl Send for Archive
impl Sync for Archive
impl Unpin for Archive
impl UnwindSafe for Archive
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