#[non_exhaustive]pub struct PackOptions {
pub build: bool,
pub exclude: Vec<String>,
pub include_folders: Vec<PathBuf>,
pub direct_include_folders: Vec<PathBuf>,
pub header_extensions: Vec<(String, String)>,
pub exclude_paths: Vec<PathBuf>,
pub exclude_stdout: bool,
}Expand description
What PBO::from_directory does with a folder.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.build: boolBinarize models and rapify configs (build) instead of packing the files as they are.
exclude: Vec<String>Glob patterns of files left out of the PBO.
include_folders: Vec<PathBuf>Folders searched for absolute includes in configs and model dependencies.
direct_include_folders: Vec<PathBuf>Folders checked for absolute includes only directly (<folder>/<include path>), never walked. The CLI puts
the current working directory here (#66).
header_extensions: Vec<(String, String)>Header extensions (key, value) set after $PBOPREFIX$ was read; they win on a clash.
exclude_paths: Vec<PathBuf>Paths the folder walk skips (the output file of a build inside the source folder), compared after
canonicalizing. Hidden temp files of such a target (see atomic_temp_prefix) next to it are skipped too.
exclude_stdout: boolAlso skip the file this process’s standard output is redirected to, when it is a regular file (dayzmake pack m > m/out.pbo creates the file inside the folder before the walk). A terminal, a pipe, /dev/null
or a closed stdout excludes nothing.
Implementations§
Source§impl PackOptions
impl PackOptions
Sourcepub fn pack() -> PackOptions
pub fn pack() -> PackOptions
Options for packing a folder as it is.
Sourcepub fn build() -> PackOptions
pub fn build() -> PackOptions
Options for building a folder: binarize and rapify where needed.
Trait Implementations§
Source§impl Clone for PackOptions
impl Clone for PackOptions
Source§fn clone(&self) -> PackOptions
fn clone(&self) -> PackOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PackOptions
impl Debug for PackOptions
Source§impl Default for PackOptions
impl Default for PackOptions
Source§fn default() -> PackOptions
fn default() -> PackOptions
Auto Trait Implementations§
impl Freeze for PackOptions
impl RefUnwindSafe for PackOptions
impl Send for PackOptions
impl Sync for PackOptions
impl Unpin for PackOptions
impl UnsafeUnpin for PackOptions
impl UnwindSafe for PackOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().