pub struct Options {
pub thread_limit: Option<usize>,
pub chunk_size: usize,
pub input_object_expansion: ObjectExpansion,
}
Available on crate feature
generate
only.Expand description
Configuration options for the pack generation functions provided in this module.
Fields§
§thread_limit: Option<usize>
The amount of threads to use at most when resolving the pack. If None
, all logical cores are used.
If more than one thread is used, the order of returned counts is not deterministic anymore
especially when tree traversal is involved. Thus deterministic ordering requires Some(1)
to be set.
chunk_size: usize
The amount of objects per chunk or unit of work to be sent to threads for processing
input_object_expansion: ObjectExpansion
The way input objects are handled
Trait Implementations§
source§impl<'de> Deserialize<'de> for Options
impl<'de> Deserialize<'de> for Options
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Options
impl Ord for Options
source§impl PartialEq for Options
impl PartialEq for Options
source§impl PartialOrd for Options
impl PartialOrd for Options
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Options
impl Eq for Options
impl StructuralEq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more