doc.rust-lang.org
fn deref(&self) -> &<Self as >::Target
Dereferences the value.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
type Target
The resulting type after dereferencing.
associated_type
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait Deref
Used for immutable dereferencing operations, like *v.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn map_continue<T, F>(self, f: F) -> ControlFlow<B, T>
Maps ControlFlow<B, C> to ControlFlow<B, T> by applying a function to the continue value in case it exists.
method
core
Stable since 1.83.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn map_break<T, F>(self, f: F) -> ControlFlow<T, C>
Maps ControlFlow<B, C> to ControlFlow<T, C> by applying a function to the break value in case it exists.
method
core
Stable since 1.83.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_continue(&self) -> bool
Returns true if this is a Continue variant.
method
core
Stable since 1.59.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_break(&self) -> bool
Returns true if this is a Break variant.
method
core
Stable since 1.59.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn continue_value(self) -> Option<C>
Converts the ControlFlow into an Option which is Some if the ControlFlow was Continue and None otherwise.
method
core
Stable since 1.83.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn continue_ok(self) -> Result<C, B>
Converts the ControlFlow into a Result which is Ok if the ControlFlow was Continue and Err if otherwise.
method
core
Stable since 1.96.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn break_value(self) -> Option<B>
Converts the ControlFlow into an Option which is Some if the ControlFlow was Break and None otherwise.
method
core
Stable since 1.83.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn break_ok(self) -> Result<B, C>
Converts the ControlFlow into a Result which is Ok if the ControlFlow was Break and Err if otherwise.
method
core
Stable since 1.96.0
Version 1.100.0-nightly
doc.rust-lang.org
pub enum ControlFlow<B, C>
Used to tell an operation whether it should exit early or go on as usual.
enum
core
Stable since 1.55.0
Version 1.100.0-nightly
doc.rust-lang.org
fn shr_assign(&mut self, rhs: Rhs)
Performs the >>= operation.
method
core
Stable since 1.8.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait ShrAssign<Rhs>
The right shift assignment operator >>=.
trait
core
Stable since 1.8.0
Version 1.100.0-nightly
doc.rust-lang.org
fn shr(self, rhs: Rhs) -> <Self as >::Output
Performs the >> operation.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
type Output
The resulting type after applying the >> operator.
associated_type
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait Shr<Rhs>
The right shift operator >>. Note that because this trait is implemented for all integer types with multiple right-hand-side types, Rust's type checker has special handling for _ >> _, setting the result type for integer operations to the type of the left-hand-side operand. This means that though a >> b and a.shr(b) are one and the same from an evaluation standpoint, they are different when it comes to type inference.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn shl_assign(&mut self, rhs: Rhs)
Performs the <<= operation.
method
core
Stable since 1.8.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait ShlAssign<Rhs>
The left shift assignment operator <<=.
trait
core
Stable since 1.8.0
Version 1.100.0-nightly
doc.rust-lang.org
fn shl(self, rhs: Rhs) -> <Self as >::Output
Performs the << operation.
method
core
Stable since 1.0.0
Version 1.100.0-nightly