doc.rust-lang.org
pub const fn is_empty(&self) -> bool
Returns true if the range contains no items.
method
core
Stable since 1.47.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn contains<U>(&self, item: &U) -> bool
Returns true if item is contained in the range.
method
core
Stable since 1.35.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Range<Idx>
A (half-open) range bounded inclusively below and exclusively above (start..end).
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn map<U, F>(self, f: F) -> Bound<U>
Maps a Bound<T> to a Bound<U> by applying a function to the contained value (including both Included and Excluded), returning a Bound of the same kind.
method
core
Stable since 1.77.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn cloned(self) -> Bound<T>
Map a Bound<&T> to a Bound<T> by cloning the contents of the bound.
method
core
Stable since 1.55.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn as_ref(&self) -> Bound<&T>
Converts from &Bound<T> to Bound<&T>.
method
core
Stable since 1.65.0
Version 1.100.0-nightly
doc.rust-lang.org
pub enum Bound<T>
An endpoint of a range of keys.
enum
core
Stable since 1.17.0
Version 1.100.0-nightly
doc.rust-lang.org
fn index_mut(&mut self, index: Idx) -> &mut <Self as >::Output
Performs the mutable indexing (container[index]) operation.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait IndexMut<Idx>
Used for indexing operations (container[index]) in mutable contexts.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn index(&self, index: Idx) -> &<Self as >::Output
Performs the indexing (container[index]) operation.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
type Output
The returned type after indexing.
associated_type
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait Index<Idx>
Used for indexing operations (container[index]) in immutable contexts.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
type Output
The returned type after the call operator is used.
associated_type
core
Stable since 1.12.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait FnOnce<Args>
The version of the call operator that takes a by-value receiver.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait FnMut<Args>
The version of the call operator that takes a mutable receiver.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait Fn<Args>
The version of the call operator that takes an immutable receiver.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn drop(&mut self)
Executes the destructor for this type.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait Drop
Custom code within the destructor.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn deref_mut(&mut self) -> &mut <Self as >::Target
Mutably dereferences the value.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait DerefMut
Used for mutable dereferencing operations, like in *v = 1;.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly