Skip to main content

Doors

Struct Doors 

Source
pub struct Doors {
    pub fulltext: bool,
    pub vector: bool,
    pub mixed: bool,
}
Expand description

WHICH of the three fused doors a tier emits — the ADDITIVE DOOR LAW, decided in one place.

§Additive, which is the whole of the ruling

The per-kind doors keep emitting at every level. These stand BESIDE them and never instead of them, so a tier that grows a second route of one modality grows a door and loses nothing: a client written against retrieve_keys_by_<field> goes on working the day the declaration fans.

§Two modalities, three doors, and the third is not a spelling of the first two

A tier with two full-text routes gets fulltext_fuse and a tier with two vector routes gets vector_fuse, because RRF over one modality is a pure question about that modality. fuse is the MIXED door and needs at least one route of EACH: over a single-modality route set it would be a second spelling of the modality door, which is two names for one behaviour and the thing this law exists to keep out.

Fields§

§fulltext: bool

fulltext_fuse — two or more full-text routes.

§vector: bool

vector_fuse — two or more vector routes.

§mixed: bool

fuse — at least one route of EACH modality.

Implementations§

Source§

impl Doors

Source

pub const fn of(fulltext: usize, vector: usize) -> Self

The law itself, over one tier’s per-modality route counts.

A constructor over two numbers rather than a method on Tier, because the ROOT tier’s counts come from its members’ KINDS and an index tier’s from its own elections — two callers, one rule, and nowhere for the rule to be restated differently.

Source

pub const fn any(self) -> bool

Whether this tier emits any fused door at all.

Trait Implementations§

Source§

impl Clone for Doors

Source§

fn clone(&self) -> Self

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 Copy for Doors

Source§

impl Debug for Doors

Source§

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

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

impl Eq for Doors

Source§

impl PartialEq for Doors

Source§

fn eq(&self, other: &Self) -> 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 Doors

Auto Trait Implementations§

§

impl Freeze for Doors

§

impl RefUnwindSafe for Doors

§

impl Send for Doors

§

impl Sync for Doors

§

impl Unpin for Doors

§

impl UnsafeUnpin for Doors

§

impl UnwindSafe for Doors

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> 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.