Trait dfir_lang::graph::ops::RangeTrait
source · pub trait RangeTrait<T>:
Send
+ Sync
+ Debugwhere
T: ?Sized,{
// Required methods
fn start_bound(&self) -> Bound<&T>;
fn end_bound(&self) -> Bound<&T>;
fn contains(&self, item: &T) -> bool
where T: PartialOrd<T>;
// Provided method
fn human_string(&self) -> String
where T: Display + PartialEq { ... }
}
Expand description
An object-safe version of RangeBounds
.
Required Methods§
sourcefn start_bound(&self) -> Bound<&T>
fn start_bound(&self) -> Bound<&T>
Start (lower) bound.
sourcefn contains(&self, item: &T) -> boolwhere
T: PartialOrd<T>,
fn contains(&self, item: &T) -> boolwhere
T: PartialOrd<T>,
Returns if item
is contained in this range.
Provided Methods§
sourcefn human_string(&self) -> String
fn human_string(&self) -> String
Turn this range into a human-readable string.