Trait space_time::index_range::IndexRange[][src]

pub trait IndexRange: Debug {
    fn lower(&self) -> u64;
fn upper(&self) -> u64;
fn contained(&self) -> bool; fn tuple(&self) -> (u64, u64, bool) { ... } }
Expand description

Sortable Range trait.

Required methods

The lower index.

The upper index.

Contained.

Provided methods

Returns all three (lower, upper, contained) as a tuple.

Trait Implementations

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Implementors