pub trait OverlapsValue<T, C: Collate> {
// Required method
fn overlaps_value(&self, value: &T, collator: &C) -> Overlap;
// Provided method
fn contains_value(&self, value: &T, collator: &C) -> bool { ... }
}Expand description
Range-value comparison methods
Required Methods§
Sourcefn overlaps_value(&self, value: &T, collator: &C) -> Overlap
fn overlaps_value(&self, value: &T, collator: &C) -> Overlap
Return true if this range overlaps value according to collator.
Provided Methods§
Sourcefn contains_value(&self, value: &T, collator: &C) -> bool
fn contains_value(&self, value: &T, collator: &C) -> bool
Return true if this range contains value according to collator.