pub enum CoverResult {
CoveredBy(usize),
DisjointFromAll,
Overlaps,
}Expand description
Class that covers an interval in a CharPartition
A CoverResult identifies the CharPartition’s class that contains an interval [a, b] if any.
For an interval [a, b] and a partition [a0, b0], …, [an, bn], CoverResult describes three possible outcomes:
CoveredBy(i)means that [a, b] is included in class Ci = [ai, bi]DisjointFromAllmeans that [a, b] does not intersect with any [ai, bi] so [a, b] is included in the complementary class.Overlapsmeans that [a, b] and some interval [ai, bi] intersect, but [a, b] is not contained in this internal.
Variants§
CoveredBy(usize)
CoveredBy(i) denotes the i-th interval [ai, bi] in the partition
DisjointFromAll
DisjointFromAll denotes the partition’s complementary class
Overlaps
Overlaps means that [a, b] intersects some interval [ai, bi] but is not fully included in this interval.
Trait Implementations§
Source§impl Clone for CoverResult
impl Clone for CoverResult
Source§fn clone(&self) -> CoverResult
fn clone(&self) -> CoverResult
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 CoverResult
impl Debug for CoverResult
Source§impl Display for CoverResult
impl Display for CoverResult
Source§impl Hash for CoverResult
impl Hash for CoverResult
Source§impl PartialEq for CoverResult
impl PartialEq for CoverResult
impl Copy for CoverResult
impl Eq for CoverResult
impl StructuralPartialEq for CoverResult
Auto Trait Implementations§
impl Freeze for CoverResult
impl RefUnwindSafe for CoverResult
impl Send for CoverResult
impl Sync for CoverResult
impl Unpin for CoverResult
impl UnwindSafe for CoverResult
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