Expand description
Interval adapter for both open/closed implementations of intervals ( ranges ).
§Module :: winterval
Interval adapter for both open/closed implementations of intervals ( ranges ).
§Sample
#[ cfg( feature = "use_std" ) ]
{
use winterval::*;
let src = 2..5;
assert_eq!( src.closed(), ( 2, 4 ) );
let src = 2..=4;
assert_eq!( src.closed(), ( 2, 4 ) );
}§To add to your project
cargo add winterval§Try out from the repository
git clone https://github.com/Wandalen/wTools
cd wTools
cd sample/rust/winterval_trivial
cargo runModules§
- exposed
- Exposed namespace of the module.
- orphan
- Parented namespace of the module.
- prelude
- Prelude to use essentials:
use my_module::prelude::*. - protected
- Protected namespace of the module.
Structs§
- Interval
- Alternative implementation of interval.
Traits§
- Interval
Adapter - Interval adapter. Interface to interval-like structures.