pub struct MapOptions {
pub hash_reuse: bool,
}Expand description
Options for map_repo – see the module header.
Fields§
§hash_reuse: boolContent-hash reuse (module header). MapOptions::default() keeps false
(mtime keying); the binary’s env default is true – see from_env.
Implementations§
Source§impl MapOptions
impl MapOptions
Sourcepub fn from_env() -> Self
pub fn from_env() -> Self
Binary default: hash reuse ON. Exactly SCOUT_MTIME_REUSE=1 drops back to
mtime keying; anything else (including unset) keeps hash reuse. The retired
opt-in SCOUT_HASH_REUSE is deliberately not read any more – it named what
is now the default. A free function rather than folded into map_repo
itself so tests (and any future caller) can construct MapOptions directly
– deterministic, no process-env mutation shared across parallel cargo test threads.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MapOptions
impl RefUnwindSafe for MapOptions
impl Send for MapOptions
impl Sync for MapOptions
impl Unpin for MapOptions
impl UnsafeUnpin for MapOptions
impl UnwindSafe for MapOptions
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<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