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
sourceimpl<T: Clone> Clone for SegmentValue<T>
impl<T: Clone> Clone for SegmentValue<T>
sourcefn clone(&self) -> SegmentValue<T>
fn clone(&self) -> SegmentValue<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug> Debug for SegmentValue<T>
impl<T: Debug> Debug for SegmentValue<T>
sourceimpl<T> From<T> for SegmentValue<T>
impl<T> From<T> for SegmentValue<T>
sourcefn from(this: T) -> SegmentValue<T>
fn from(this: T) -> SegmentValue<T>
Converts to this type from the input type.
sourceimpl<T, D: DiscreteRanged + Ranged<ValueType = T>> ValueFormatter<SegmentValue<T>> for SegmentedCoord<D>where
D: ValueFormatter<T>,
impl<T, D: DiscreteRanged + Ranged<ValueType = T>> ValueFormatter<SegmentValue<T>> for SegmentedCoord<D>where
D: ValueFormatter<T>,
sourcefn format(value: &SegmentValue<T>) -> String
fn format(value: &SegmentValue<T>) -> String
Format the value
sourcefn format_ext(&self, value: &V) -> String
fn format_ext(&self, value: &V) -> String
Determine how we can format a value in a coordinate system by default
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more