Skip to main content

Config

Struct Config 

Source
pub struct Config {
Show 13 fields pub matcher_v: String, pub theta_accept: f64, pub theta_small: f64, pub small_block_tokens: usize, pub context_sim_floor: f64, pub children_vouch_frac: f64, pub split_coverage: f64, pub split_dominant_share: f64, pub copy_sim: f64, pub bulk_unmatched_frac: f64, pub bulk_min_blocks: usize, pub max_scored_blocks: usize, pub theta_xdoc: f64,
}
Expand description

The thresholds and weights (§6), named as the fixtures spell them. The reference’s ReconcileConfig uses the camelCase spellings.

Fields§

§matcher_v: String

Stamped on every disposition ("m" + VERSION).

§theta_accept: f64

Phase 5 acceptance.

§theta_small: f64

Phase 5 acceptance when the new block has fewer than small_block_tokens tokens.

§small_block_tokens: usize

The tiny-block boundary.

§context_sim_floor: f64

Phase 4a text_sim floor.

§children_vouch_frac: f64

Phase 4b: fraction of an old container’s children that must have carried into one new container.

§split_coverage: f64

Phase 6a split/merge coverage.

§split_dominant_share: f64

Phase 6a dominant-fragment inheritance; 1.01 disables it.

§copy_sim: f64

Phase 6a copy detection.

§bulk_unmatched_frac: f64

Bulk-rewrite trigger (strictly exceeded).

§bulk_min_blocks: usize

Bulk-rewrite minimum document size.

§max_scored_blocks: usize

Phase 5 skips when the unmatched total exceeds twice this.

§theta_xdoc: f64

Cross-document acceptance (§7).

Trait Implementations§

Source§

impl Clone for Config

Source§

fn clone(&self) -> Config

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Config

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for Config

Source§

fn default() -> Config

The §6 defaults.

Source§

impl PartialEq for Config

Source§

fn eq(&self, other: &Config) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Config

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.