Struct ba2::fo4::FileWriteOptions
source · pub struct FileWriteOptions { /* private fields */ }
Expand description
Common parameters to configure how files are written.
use ba2::fo4::{CompressionFormat, FileWriteOptions, Format};
// Write a file for FO4/FO76
let _ = FileWriteOptions::builder()
.compression_format(CompressionFormat::Zip)
.build();
// Write a file for SF, GNRL format
let _ = FileWriteOptions::builder()
.compression_format(CompressionFormat::Zip)
.build();
// Write a file for SF, DX10 format
let _ = FileWriteOptions::builder()
.compression_format(CompressionFormat::LZ4)
.build();
Implementations§
source§impl WriteOptions
impl WriteOptions
pub fn builder() -> WriteOptionsBuilder
pub fn compression_format(&self) -> CompressionFormat
Trait Implementations§
source§impl Clone for WriteOptions
impl Clone for WriteOptions
source§fn clone(&self) -> WriteOptions
fn clone(&self) -> WriteOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WriteOptions
impl Debug for WriteOptions
source§impl Default for WriteOptions
impl Default for WriteOptions
source§fn default() -> WriteOptions
fn default() -> WriteOptions
Returns the “default value” for a type. Read more
source§impl From<&Options> for WriteOptions
impl From<&Options> for WriteOptions
source§fn from(value: &ArchiveOptions) -> Self
fn from(value: &ArchiveOptions) -> Self
Converts to this type from the input type.
source§impl From<&WriteOptions> for CompressionOptions
impl From<&WriteOptions> for CompressionOptions
source§fn from(value: &FileWriteOptions) -> Self
fn from(value: &FileWriteOptions) -> Self
Converts to this type from the input type.
source§impl From<&WriteOptions> for CompressionOptionsBuilder
impl From<&WriteOptions> for CompressionOptionsBuilder
source§fn from(value: &FileWriteOptions) -> Self
fn from(value: &FileWriteOptions) -> Self
Converts to this type from the input type.
source§impl From<Options> for WriteOptions
impl From<Options> for WriteOptions
source§fn from(value: ArchiveOptions) -> Self
fn from(value: ArchiveOptions) -> Self
Converts to this type from the input type.
source§impl From<WriteOptions> for CompressionOptions
impl From<WriteOptions> for CompressionOptions
source§fn from(value: FileWriteOptions) -> Self
fn from(value: FileWriteOptions) -> Self
Converts to this type from the input type.
source§impl From<WriteOptions> for CompressionOptionsBuilder
impl From<WriteOptions> for CompressionOptionsBuilder
source§fn from(value: FileWriteOptions) -> Self
fn from(value: FileWriteOptions) -> Self
Converts to this type from the input type.
impl Copy for WriteOptions
Auto Trait Implementations§
impl RefUnwindSafe for WriteOptions
impl Send for WriteOptions
impl Sync for WriteOptions
impl Unpin for WriteOptions
impl UnwindSafe for WriteOptions
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