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 Freeze for WriteOptions
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