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> Clone for SegmentValue<T>
impl<T: Clone> Clone for SegmentValue<T>
Source§fn clone(&self) -> SegmentValue<T>
fn clone(&self) -> SegmentValue<T>
Returns a copy 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> Debug for SegmentValue<T>
impl<T: Debug> Debug for SegmentValue<T>
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.
Source§impl<T, D> ValueFormatter<SegmentValue<T>> for SegmentedCoord<D>
impl<T, D> ValueFormatter<SegmentValue<T>> for SegmentedCoord<D>
Source§fn format(value: &SegmentValue<T>) -> String
fn format(value: &SegmentValue<T>) -> String
Format the value
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