#[repr(C)]pub struct Segment<K: Key> {
pub min_key: K,
pub max_key: K,
pub slope: f64,
pub intercept: f64,
pub start_idx: u32,
pub end_idx: u32,
}Expand description
Linear segment: y = slope * x + intercept 线性段:y = slope * x + intercept
Fields§
§min_key: K§max_key: K§slope: f64§intercept: f64§start_idx: u32§end_idx: u32Trait Implementations§
impl<K: Copy + Key> Copy for Segment<K>
impl<'__de, K> Decode<'__de> for Segment<K>
impl<K> Encode for Segment<K>
Auto Trait Implementations§
impl<K> Freeze for Segment<K>where
K: Freeze,
impl<K> RefUnwindSafe for Segment<K>where
K: RefUnwindSafe,
impl<K> Send for Segment<K>
impl<K> Sync for Segment<K>
impl<K> Unpin for Segment<K>where
K: Unpin,
impl<K> UnwindSafe for Segment<K>where
K: UnwindSafe,
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