pub struct WraparoundInterval {
inner: Interval,
}
Expand description
Fields§
§inner: Interval
Implementations§
Trait Implementations§
Source§impl Clone for WraparoundInterval
impl Clone for WraparoundInterval
Source§fn clone(&self) -> WraparoundInterval
fn clone(&self) -> WraparoundInterval
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 Debug for WraparoundInterval
impl Debug for WraparoundInterval
Source§impl From<Interval> for WraparoundInterval
impl From<Interval> for WraparoundInterval
Source§impl IntervalTrait for WraparoundInterval
impl IntervalTrait for WraparoundInterval
Source§fn empty() -> Self
fn empty() -> Self
Create an empty interval that intersects nothing (except the full interval)
Source§fn full() -> Self
fn full() -> Self
Create the full interval (that intersects everything, including the empty interval)
Source§fn is_wraparound(&self) -> bool
fn is_wraparound(&self) -> bool
Check for wraparound Read more
Source§fn intersects_value(&self, value: f64) -> bool
fn intersects_value(&self, value: f64) -> bool
Check for potential intersection with a value Read more
Source§fn intersects_interval(&self, other: &Self) -> bool
fn intersects_interval(&self, other: &Self) -> bool
Check for potential intersection with an interval Read more
Source§fn contains_interval(&self, other: &Self) -> bool
fn contains_interval(&self, other: &Self) -> bool
Check for potential containment of an interval Read more
Source§fn merge_interval(&self, other: &Self) -> Self
fn merge_interval(&self, other: &Self) -> Self
Compute a new interval that is the union of both Read more
Source§fn merge_value(&self, value: f64) -> Self
fn merge_value(&self, value: f64) -> Self
Compute a new interval that is the union of both Read more
Source§impl PartialEq for WraparoundInterval
impl PartialEq for WraparoundInterval
Source§impl TryFrom<WraparoundInterval> for Interval
impl TryFrom<WraparoundInterval> for Interval
impl Copy for WraparoundInterval
impl StructuralPartialEq for WraparoundInterval
Auto Trait Implementations§
impl Freeze for WraparoundInterval
impl RefUnwindSafe for WraparoundInterval
impl Send for WraparoundInterval
impl Sync for WraparoundInterval
impl Unpin for WraparoundInterval
impl UnwindSafe for WraparoundInterval
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