pub struct ArtemisPf2Writer<T: Write + Seek + Read> {
writer: T,
headers: HashMap<String, Pf2EntryHeader>,
encoding: Encoding,
index_size: u32,
}Available on crate features
artemis and artemis-arc only.Expand description
The Artemis PF2 archive writer.
Fields§
§writer: T§headers: HashMap<String, Pf2EntryHeader>§encoding: Encoding§index_size: u32Implementations§
Trait Implementations§
Source§impl<T: Write + Seek + Read> Archive for ArtemisPf2Writer<T>
impl<T: Write + Seek + Read> Archive for ArtemisPf2Writer<T>
Source§fn new_file<'a>(
&'a mut self,
name: &str,
_size: Option<u64>,
) -> Result<Box<dyn WriteSeek + 'a>>
fn new_file<'a>( &'a mut self, name: &str, _size: Option<u64>, ) -> Result<Box<dyn WriteSeek + 'a>>
Creates a new file in the archive. Read more
Source§fn write_header(&mut self) -> Result<()>
fn write_header(&mut self) -> Result<()>
Writes the header of the archive. (Must be called after writing all files.)
Auto Trait Implementations§
impl<T> Freeze for ArtemisPf2Writer<T>where
T: Freeze,
impl<T> RefUnwindSafe for ArtemisPf2Writer<T>where
T: RefUnwindSafe,
impl<T> Send for ArtemisPf2Writer<T>where
T: Send,
impl<T> Sync for ArtemisPf2Writer<T>where
T: Sync,
impl<T> Unpin for ArtemisPf2Writer<T>where
T: Unpin,
impl<T> UnwindSafe for ArtemisPf2Writer<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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more