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: usizeThe amount of objects per chunk or unit of work to be sent to threads for processing
input_object_expansion: ObjectExpansionThe way input objects are handled
Trait Implementations§
impl Copy for Options
Source§impl<'de> Deserialize<'de> for Options
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Options
Available on crate feature
serde only.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
impl Eq for Options
Source§impl Ord for Options
impl Ord for Options
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Options
impl PartialOrd for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.