Struct gitoxide_core::pack::index::Context
source · pub struct Context<'a, W: Write> {
pub thread_limit: Option<usize>,
pub iteration_mode: IterationMode,
pub format: OutputFormat,
pub should_interrupt: &'a AtomicBool,
pub out: W,
pub object_hash: Kind,
}
Fields§
§thread_limit: Option<usize>
§iteration_mode: IterationMode
§format: OutputFormat
§should_interrupt: &'a AtomicBool
§out: W
§object_hash: Kind
Auto Trait Implementations§
impl<'a, W> Freeze for Context<'a, W>where
W: Freeze,
impl<'a, W> RefUnwindSafe for Context<'a, W>where
W: RefUnwindSafe,
impl<'a, W> Send for Context<'a, W>where
W: Send,
impl<'a, W> Sync for Context<'a, W>where
W: Sync,
impl<'a, W> Unpin for Context<'a, W>where
W: Unpin,
impl<'a, W> UnwindSafe for Context<'a, W>where
W: UnwindSafe,
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> 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>
Converts
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>
Converts
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