pub struct CanonicalMultirange<I = RangeSubtype> { /* private fields */ }Implementations§
Source§impl CanonicalMultirange
impl CanonicalMultirange
Sourcepub fn cmp_with_control(
&self,
other: &Self,
control: &ProductionControl<'_>,
) -> Result<Ordering>
pub fn cmp_with_control( &self, other: &Self, control: &ProductionControl<'_>, ) -> Result<Ordering>
Compare normalized members in order; an equal prefix places the shorter multirange first.
Source§impl<I> CanonicalMultirange<I>
impl<I> CanonicalMultirange<I>
Source§impl CanonicalMultirange
impl CanonicalMultirange
pub fn contains_range(&self, range: &CanonicalRange) -> bool
pub fn contains_multirange(&self, other: &Self) -> bool
pub fn overlaps_range(&self, range: &CanonicalRange) -> bool
pub fn overlaps_multirange(&self, other: &Self) -> bool
pub fn merge_cover(&self) -> CanonicalRange
pub fn to_text(&self) -> String
Trait Implementations§
Source§impl<I: Clone> Clone for CanonicalMultirange<I>
impl<I: Clone> Clone for CanonicalMultirange<I>
Source§impl<I: Debug> Debug for CanonicalMultirange<I>
impl<I: Debug> Debug for CanonicalMultirange<I>
impl<I: Eq> Eq for CanonicalMultirange<I>
Source§impl<I: PartialEq> PartialEq for CanonicalMultirange<I>
impl<I: PartialEq> PartialEq for CanonicalMultirange<I>
impl<I: PartialEq> StructuralPartialEq for CanonicalMultirange<I>
Auto Trait Implementations§
impl<I> Freeze for CanonicalMultirange<I>
impl<I> RefUnwindSafe for CanonicalMultirange<I>
impl<I> Send for CanonicalMultirange<I>
impl<I> Sync for CanonicalMultirange<I>
impl<I> Unpin for CanonicalMultirange<I>
impl<I> UnsafeUnpin for CanonicalMultirange<I>
impl<I> UnwindSafe for CanonicalMultirange<I>
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more