Struct ba2::tes4::FileReadOptions
source · pub struct FileReadOptions { /* private fields */ }
Expand description
Common parameters to configure how files are read.
use ba2::{
tes4::{FileReadOptions, Version},
CompressionResult,
};
// Read and compress a file for TES:IV
let _ = FileReadOptions::builder()
.version(Version::TES4)
.compression_result(CompressionResult::Compressed)
.build();
// Read and compress a file for F3/FNV/TES:V
let _ = FileReadOptions::builder()
.version(Version::FO3)
.compression_result(CompressionResult::Compressed)
.build();
// Read and compress a file for SSE
let _ = FileReadOptions::builder()
.version(Version::SSE)
.compression_result(CompressionResult::Compressed)
.build();
Implementations§
source§impl ReadOptions
impl ReadOptions
pub fn builder() -> ReadOptionsBuilder
pub fn compression_codec(&self) -> CompressionCodec
pub fn compression_result(&self) -> CompressionResult
pub fn version(&self) -> Version
Trait Implementations§
source§impl Clone for ReadOptions
impl Clone for ReadOptions
source§fn clone(&self) -> ReadOptions
fn clone(&self) -> ReadOptions
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 ReadOptions
impl Debug for ReadOptions
source§impl Default for ReadOptions
impl Default for ReadOptions
source§fn default() -> ReadOptions
fn default() -> ReadOptions
Returns the “default value” for a type. Read more
source§impl From<&Options> for ReadOptions
impl From<&Options> for ReadOptions
source§fn from(value: &ArchiveOptions) -> Self
fn from(value: &ArchiveOptions) -> Self
Converts to this type from the input type.
source§impl From<Options> for ReadOptions
impl From<Options> for ReadOptions
source§fn from(value: ArchiveOptions) -> Self
fn from(value: ArchiveOptions) -> Self
Converts to this type from the input type.
impl Copy for ReadOptions
Auto Trait Implementations§
impl RefUnwindSafe for ReadOptions
impl Send for ReadOptions
impl Sync for ReadOptions
impl Unpin for ReadOptions
impl UnwindSafe for ReadOptions
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