pub struct Interval<T = isize>{ /* private fields */ }
Expand description
Alternative implementation of interval.
Both core::ops::Range, core::ops::RangeInclusive are convertable to crate::Interval
Implementations§
Trait Implementations§
Source§impl<T> From<RangeInclusive<T>> for Interval<T>
impl<T> From<RangeInclusive<T>> for Interval<T>
Source§fn from(src: RangeInclusive<T>) -> Interval<T>
fn from(src: RangeInclusive<T>) -> Interval<T>
Converts to this type from the input type.
Source§impl<T> IntervalAdapter<T> for Interval<T>
impl<T> IntervalAdapter<T> for Interval<T>
Source§fn closed_open(&self) -> (T, T)
fn closed_open(&self) -> (T, T)
interval in closed-open format as pair of numbers
impl<T> StructuralPartialEq for Interval<T>
Auto Trait Implementations§
impl<T> Freeze for Interval<T>
impl<T> RefUnwindSafe for Interval<T>
impl<T> Send for Interval<T>
impl<T> Sync for Interval<T>
impl<T> Unpin for Interval<T>
impl<T> UnwindSafe for Interval<T>
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
Source§impl<Target, Original> VectorizedInto<Target> for Originalwhere
Target: VectorizedFrom<Original>,
impl<Target, Original> VectorizedInto<Target> for Originalwhere
Target: VectorizedFrom<Original>,
Source§fn vectorized_into(self) -> Target
fn vectorized_into(self) -> Target
Performs the conversion.