Skip to main content

Range

Trait Range 

Source
pub trait Range<R>
where R: Read,
{ }
Expand description

Native range types (.., lower.., ..=upper, lower..=upper) that can be passed as bounds to SequentialMap::range and ConcurrentMap::range.

Currently, only RangeFull, RangeFrom, RangeToInclusive, and RangeInclusive are supported. Range (with an exclusive upper bound) is not supported. The following types can be used as range bounds:

  • Borrowed keys (&'_ Key::Borrowed),
  • Slices (&'_ [u8])
  • Array references (&'_ [u8; 5])
  • For integer keys, owned integers (u64)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<R: Read, T: Into<R> + Copy> Range<R> for RangeFrom<T>

Source§

impl<R: Read, T: Into<R> + Copy> Range<R> for RangeInclusive<T>

Source§

impl<R: Read, T: Into<R> + Copy> Range<R> for RangeToInclusive<T>

Source§

impl<R> Range<R> for RangeFull
where R: Read,

Implementors§