Trait dfir_lang::graph::ops::RangeTrait

source ·
pub trait RangeTrait<T>:
    Send
    + Sync
    + Debug
where 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§

source

fn start_bound(&self) -> Bound<&T>

Start (lower) bound.

source

fn end_bound(&self) -> Bound<&T>

End (upper) bound.

source

fn contains(&self, item: &T) -> bool
where T: PartialOrd<T>,

Returns if item is contained in this range.

Provided Methods§

source

fn human_string(&self) -> String
where T: Display + PartialEq,

Turn this range into a human-readable string.

Implementors§

source§

impl<R, T> RangeTrait<T> for R
where R: RangeBounds<T> + Send + Sync + Debug,