Struct ages_ice_archive::IceWriter
source · [−]pub struct IceWriter { /* private fields */ }
Expand description
Type for writing an ICE archive.
Implementations
sourceimpl IceWriter
impl IceWriter
sourcepub fn new(
version: u32,
compress: bool,
encrypt: bool,
oodle: bool
) -> Result<IceWriter, UnsupportedVersion>
pub fn new(
version: u32,
compress: bool,
encrypt: bool,
oodle: bool
) -> Result<IceWriter, UnsupportedVersion>
Begin a new ICE archive.
sourcepub fn begin_file<'a>(
&'a mut self,
name: &AsciiStr,
ext: &AsciiStr,
group: Group
) -> IceFileWriter<'a>ⓘNotable traits for IceFileWriter<'a>impl<'a> Write for IceFileWriter<'a>
pub fn begin_file<'a>(
&'a mut self,
name: &AsciiStr,
ext: &AsciiStr,
group: Group
) -> IceFileWriter<'a>ⓘNotable traits for IceFileWriter<'a>impl<'a> Write for IceFileWriter<'a>
Begin a file.
The finish
method must be called on the file writer to add the file to
the archive.
Auto Trait Implementations
impl RefUnwindSafe for IceWriter
impl Send for IceWriter
impl Sync for IceWriter
impl Unpin for IceWriter
impl UnwindSafe for IceWriter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self