Struct discrete_range_map::interval::InclusiveInterval
source · pub struct InclusiveInterval<I> {
pub start: I,
pub end: I,
}Fields§
§start: I§end: ITrait Implementations§
source§impl<I: Clone> Clone for InclusiveInterval<I>
impl<I: Clone> Clone for InclusiveInterval<I>
source§fn clone(&self) -> InclusiveInterval<I>
fn clone(&self) -> InclusiveInterval<I>
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<I: Debug> Debug for InclusiveInterval<I>
impl<I: Debug> Debug for InclusiveInterval<I>
source§impl<'de, I> Deserialize<'de> for InclusiveInterval<I>where
I: Deserialize<'de>,
impl<'de, I> Deserialize<'de> for InclusiveInterval<I>where
I: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<I: Hash> Hash for InclusiveInterval<I>
impl<I: Hash> Hash for InclusiveInterval<I>
source§impl<I> InclusiveRange<I> for InclusiveInterval<I>where
I: PointType,
impl<I> InclusiveRange<I> for InclusiveInterval<I>where
I: PointType,
fn start(&self) -> I
fn end(&self) -> I
fn contains(&self, point: I) -> boolwhere
I: PointType,
fn is_valid(&self) -> boolwhere
I: PointType,
source§fn touches_ordered(&self, other: &Self) -> boolwhere
I: PointType,
fn touches_ordered(&self, other: &Self) -> boolwhere
I: PointType,
requires that self comes before other and they don’t overlap
source§fn overlaps_ordered(&self, other: &Self) -> boolwhere
I: PointType,
fn overlaps_ordered(&self, other: &Self) -> boolwhere
I: PointType,
requires that self comes before other
source§fn intersect(&self, other: &Self) -> Option<Self>
fn intersect(&self, other: &Self) -> Option<Self>
Intersect the range with the other one, and return Some if the intersection is not empty.
source§fn merge_ordered(&self, other: &Self) -> Selfwhere
Self: From<InclusiveInterval<I>>,
fn merge_ordered(&self, other: &Self) -> Selfwhere
Self: From<InclusiveInterval<I>>,
requires that self comes before other
source§impl<I: PartialEq> PartialEq for InclusiveInterval<I>
impl<I: PartialEq> PartialEq for InclusiveInterval<I>
source§fn eq(&self, other: &InclusiveInterval<I>) -> bool
fn eq(&self, other: &InclusiveInterval<I>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<I> RangeBounds<I> for InclusiveInterval<I>where
I: PointType,
impl<I> RangeBounds<I> for InclusiveInterval<I>where
I: PointType,
source§impl<I> Serialize for InclusiveInterval<I>where
I: Serialize,
impl<I> Serialize for InclusiveInterval<I>where
I: Serialize,
impl<I: Copy> Copy for InclusiveInterval<I>
impl<I: Eq> Eq for InclusiveInterval<I>
impl<I> StructuralEq for InclusiveInterval<I>
impl<I> StructuralPartialEq for InclusiveInterval<I>
Auto Trait Implementations§
impl<I> RefUnwindSafe for InclusiveInterval<I>where
I: RefUnwindSafe,
impl<I> Send for InclusiveInterval<I>where
I: Send,
impl<I> Sync for InclusiveInterval<I>where
I: Sync,
impl<I> Unpin for InclusiveInterval<I>where
I: Unpin,
impl<I> UnwindSafe for InclusiveInterval<I>where
I: 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