doc.rust-lang.org
pub struct IntoIter<A>
An iterator over the value in Some variant of an Option.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod option
Optional values.
module
core
Stable since 1.0.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 RangeToInclusive<Idx>
A range only bounded inclusively above (..=end).
struct
core
Stable since 1.26.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 RangeTo<Idx>
A range only bounded exclusively above (..end).
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn start(&self) -> &Idx
Returns the lower bound of the range (inclusive).
method
core
Stable since 1.27.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn new(start: Idx, end: Idx) -> Self
Creates a new inclusive range. Equivalent to writing start..=end.
associated_function
core
Stable since 1.27.0
Version 1.100.0-nightly
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 into_inner(self) -> (Idx, Idx)
Destructures the RangeInclusive into (lower bound, upper (inclusive) bound).
method
core
Stable since 1.27.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn end(&self) -> &Idx
Returns the upper bound of the range (inclusive).
method
core
Stable since 1.27.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 RangeInclusive<Idx>
A range bounded inclusively below and above (start..=end).
struct
core
Stable since 1.26.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct RangeFull
An unbounded range (..).
struct
core
Stable since 1.0.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 RangeFrom<Idx>
A range only bounded inclusively below (start..).
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn start_bound(&self) -> Bound<&T>
Start index bound.
method
core
Stable since 1.28.0
Version 1.100.0-nightly
doc.rust-lang.org
fn end_bound(&self) -> Bound<&T>
End index bound.
method
core
Stable since 1.28.0
Version 1.100.0-nightly
doc.rust-lang.org
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 trait RangeBounds<T>
RangeBounds is implemented by Rust's built-in range types, produced by range syntax like .., a.., ..b, ..=c, d..e, or f..=g.
trait
core
Stable since 1.28.0
Version 1.100.0-nightly