pub enum SegmentValue<T> {
    Exact(T),
    CenterOf(T),
    Last,
}Expand description
The value that used by the segmented coordinate.
Variants§
Exact(T)
Means we are referring the exact position of value T
CenterOf(T)
Means we are referring the center of position T and the successor of T
Last
Referring the last dummy element
Trait Implementations§
Source§impl<T> Clone for SegmentValue<T>where
    T: Clone,
 
impl<T> Clone for SegmentValue<T>where
    T: Clone,
Source§fn clone(&self) -> SegmentValue<T>
 
fn clone(&self) -> SegmentValue<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl<T> Debug for SegmentValue<T>where
    T: Debug,
 
impl<T> Debug for SegmentValue<T>where
    T: Debug,
Source§impl<T> From<T> for SegmentValue<T>
 
impl<T> From<T> for SegmentValue<T>
Source§fn from(this: T) -> SegmentValue<T>
 
fn from(this: T) -> SegmentValue<T>
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for SegmentValue<T>where
    T: Freeze,
impl<T> RefUnwindSafe for SegmentValue<T>where
    T: RefUnwindSafe,
impl<T> Send for SegmentValue<T>where
    T: Send,
impl<T> Sync for SegmentValue<T>where
    T: Sync,
impl<T> Unpin for SegmentValue<T>where
    T: Unpin,
impl<T> UnwindSafe for SegmentValue<T>where
    T: 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