pub struct Range { /* private fields */ }Implementations§
source§impl Range
impl Range
pub fn from(begin: EventId) -> Self
pub fn begin(&self) -> &EventId
pub fn end(&self) -> &EventId
pub fn add_event(&mut self, end: EventId)
pub fn can_contain(&self, id: &EventId) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn events(&self) -> Iter<'_, EventId>
Trait Implementations§
source§impl Ord for Range
impl Ord for Range
source§impl PartialEq<Range> for Range
impl PartialEq<Range> for Range
source§impl PartialOrd<Range> for Range
impl PartialOrd<Range> for Range
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more