Struct test_tools::Interval
source · pub struct Interval<T = isize>where
T: Sub<Output = T> + Add<Output = T> + Copy,
isize: Into<T>,{ /* 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> Debug for Interval<T>where
T: Sub<Output = T> + Add<Output = T> + Debug + Copy,
isize: Into<T>,
impl<T> Debug for Interval<T>where T: Sub<Output = T> + Add<Output = T> + Debug + Copy, isize: Into<T>,
source§impl<T> From<Range<T>> for Interval<T>where
T: Add<Output = T> + Sub<Output = T> + Copy,
isize: Into<T>,
impl<T> From<Range<T>> for Interval<T>where T: Add<Output = T> + Sub<Output = T> + Copy, isize: Into<T>,
source§impl<T> From<RangeInclusive<T>> for Interval<T>where
T: Add<Output = T> + Sub<Output = T> + Copy,
isize: Into<T>,
impl<T> From<RangeInclusive<T>> for Interval<T>where T: Add<Output = T> + Sub<Output = T> + Copy, isize: Into<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>where
T: Add<Output = T> + Sub<Output = T> + Copy,
isize: Into<T>,
impl<T> IntervalAdapter<T> for Interval<T>where T: Add<Output = T> + Sub<Output = T> + Copy, isize: Into<T>,
source§fn closed_open(&self) -> (T, T)
fn closed_open(&self) -> (T, T)
interval in closed-open format as pair of numbers
source§impl<T> PartialEq for Interval<T>where
T: Sub<Output = T> + Add<Output = T> + PartialEq + Copy,
isize: Into<T>,
impl<T> PartialEq for Interval<T>where T: Sub<Output = T> + Add<Output = T> + PartialEq + Copy, isize: Into<T>,
impl<T> StructuralPartialEq for Interval<T>where T: Add<Output = T> + Sub<Output = T> + Copy, isize: Into<T>,
Auto Trait Implementations§
impl<T> RefUnwindSafe for Interval<T>where T: RefUnwindSafe,
impl<T> Send for Interval<T>where T: Send,
impl<T> Sync for Interval<T>where T: Sync,
impl<T> Unpin for Interval<T>where T: Unpin,
impl<T> UnwindSafe for Interval<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
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.