pub struct Options {
pub infer_renames: bool,
pub rename_threshold: u8,
}Expand description
How the decoder should behave. The defaults are the maximally-honest ones: no rename inference (RFC 004 D-3), so a default import is entirely source-Stated.
Fields§
§infer_renames: boolInfer renames from identical content and mark them Derived (RFC 004 D-3). Off by default.
When on, a delete+add of the same blob within one commit also emits a marked
Derived(InferredRename) hint — beside, never replacing, the literal delete+add. CLI flag
--infer-renames (handoff cli-and-verify-handoff-v2.md).
rename_threshold: u8The similarity percentage recorded as the rename parameter. M1 detects only exact-content moves,
so this is 100; it exists so the recorded parameter is explicit and future thresholds fit.
Implementations§
Trait Implementations§
impl Eq 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> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.