doc.rust-lang.org
pub const fn get_ref(self) -> &'a T
Gets a shared reference out of a pin.
method
core
Stable since 1.33.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn get_mut(self) -> &'a mut T
Gets a mutable reference to the data inside of this Pin.
method
core
Stable since 1.33.0
Version 1.100.0-nightly
doc.rust-lang.org
primitive reference
References, &T and &mut T.
primitive
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod legacy
Legacy range types
module
core
Stable since 1.98.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct RangeIter<A>
By-value Range iterator.
struct
core
Stable since 1.96.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct RangeInclusiveIter<A>
By-value RangeInclusive iterator.
struct
core
Stable since 1.95.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct RangeFromIter<A>
By-value RangeFrom iterator.
struct
core
Stable since 1.96.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.96.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct RangeToInclusive<Idx>
A range only bounded inclusively above.
struct
core
Stable since 1.96.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn iter(&self) -> RangeInclusiveIter<Idx>
Creates an iterator over the elements within this range.
method
core
Stable since 1.95.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.95.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.95.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct RangeInclusive<Idx>
A range bounded inclusively below and above.
struct
core
Stable since 1.95.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn iter(&self) -> RangeFromIter<Idx>
Creates an iterator over the elements within this range.
method
core
Stable since 1.96.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.96.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct RangeFrom<Idx>
A range only bounded inclusively below.
struct
core
Stable since 1.96.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn iter(&self) -> RangeIter<Idx>
Creates an iterator over the elements within this range.
method
core
Stable since 1.96.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.96.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.96.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Range<Idx>
A (half-open) range bounded inclusively below and exclusively above.
struct
core
Stable since 1.96.0
Version 1.100.0-nightly