Skip to main content

NoteMetrics

Struct NoteMetrics 

Source
pub struct NoteMetrics { /* private fields */ }
Expand description

只在一次表格候选构建期间保存排序后的正文高度与来源中心范围。

Implementations§

Source§

impl NoteMetrics

Source

pub fn new(items: Vec<(i64, f64, f64)>) -> Option<NoteMetrics>

将高度稳定排序一次,后续区间过滤保持 Python 排序后的平局顺序。

Source

pub fn rows(&self, members: Vec<Vec<i64>>) -> CoreRows

建立来源中心的行范围索引,整个走廊只传输一次成员。

Source

pub fn height_for_rows( &self, rows: &CoreRows, start: usize, end: usize, top: f64, bottom: f64, fallback: f64, ) -> Option<f64>

已证明核心全在排除区间时查询秩树,否则保留原生精确成员筛选。

Source

pub fn height( &self, top: f64, bottom: f64, core: &[i64], fallback: f64, ) -> Option<f64>

过滤纵向排除区间和明确核心成员,直接读取最高四分位的中位位置。

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