Struct gitoxide_core::pack::create::Context[][src]

pub struct Context<W> {
    pub expansion: ObjectExpansion,
    pub nondeterministic_count: bool,
    pub thread_limit: Option<usize>,
    pub statistics: Option<OutputFormat>,
    pub out: W,
}
Expand description

A general purpose context for many operations provided here

Fields

expansion: ObjectExpansion

The way input objects should be handled

nondeterministic_count: bool

If set, use tread_limit to accelerate the counting phase at the cost of loosing determinism as the order of objects during expansion changes with multiple threads unless no expansion is performed. In the latter case, this flag has no effect. If unset, counting will only use one thread and thus yield the same sequence of objects in any case. If the thread_limit is 1, the count is always deterministic.

thread_limit: Option<usize>

If set, don’t use more than this amount of threads. Otherwise, usually use as many threads as there are logical cores. A value of 0 is interpreted as no-limit

statistics: Option<OutputFormat>

If set, statistics about the operation will be written to the output stream.

out: W

The output stream for use of additional information

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.