Skip to main content

Crate rich_range

Crate rich_range 

Source
Expand description

Range calculation helper.

The author of this crate is not good at English.
Forgive me if the document is hard to read.

§Examples

use rich_range::prelude::*;

let r = rw::new(30..60) & rw::new(40..70);
assert_eq!(r.0, 40..60);

let r = ru::new(30..) & ru::new(..60);
assert_eq!(r, ru::new(30..60));

§Core items

§Cheat sheet

Following is a rough list of items.

Re-exports§

pub use values::*;

Modules§

conv
Range type conversions.
norm
Bounds normalizer.
parts
Range parts.
prelude
Crate’s prelude.
shorthands
Short names.
values
Traits for single value.

Structs§

IterRichRange
An Iterator over the values on range.
RangeUniv
Range with universal bounds.
RangeView
Range viewer for abstraction.
RangeWrapper
Range wrapper for type keeping calculation.

Enums§

CursorMode
Cursor mode.
CutMode
Cut mode.
PosStyle
Number system of position.
RangeRel
Range position relation.

Traits§

RichRangeBounds
Rich version of RangeBounds.