pub struct RuleCandidates { /* private fields */ }Implementations§
Source§impl RuleCandidates
impl RuleCandidates
Sourcepub fn new(
centers: Vec<f64>,
rows: Vec<(f64, usize, [f64; 4], Vec<i64>)>,
) -> Result<Self, &'static str>
pub fn new( centers: Vec<f64>, rows: Vec<(f64, usize, [f64; 4], Vec<i64>)>, ) -> Result<Self, &'static str>
一次验证并保存有限纯数值走廊;横线必须严格递增,不删除或重排任何行。
Sourcepub fn short_intervals(
&self,
first: usize,
count: usize,
height: f64,
) -> Result<bool, &'static str>
pub fn short_intervals( &self, first: usize, count: usize, height: f64, ) -> Result<bool, &'static str>
按原横线中心完整核验短区间条件,不改变任何列统计或候选认领结果。
Sourcepub fn segments(
&self,
start: usize,
end: usize,
height: f64,
) -> Result<Vec<Vec<usize>>, &'static str>
pub fn segments( &self, start: usize, end: usize, height: f64, ) -> Result<Vec<Vec<usize>>, &'static str>
同一不可变走廊内稳定按行中心排序并分段,所有成员仍保留且不缓存最终候选。
Auto Trait Implementations§
impl Forget for RuleCandidates
impl Freeze for RuleCandidates
impl RefUnwindSafe for RuleCandidates
impl Send for RuleCandidates
impl Sync for RuleCandidates
impl Unpin for RuleCandidates
impl UnsafeUnpin for RuleCandidates
impl UnwindSafe for RuleCandidates
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