Enum rustc::hir::LoopSource
[−]
[src]
pub enum LoopSource {
Loop,
WhileLet,
ForLoop,
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
The loop type that yielded an ExprLoop
Variants
Loop🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
A loop { .. } loop
WhileLet🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
A while let _ = _ { .. } loop
ForLoop🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
A for _ in _ { .. } loop
Trait Implementations
impl Clone for LoopSource[src]
impl Clone for LoopSourcefn clone(&self) -> LoopSource[src]
fn clone(&self) -> LoopSourceReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for LoopSource[src]
impl PartialEq for LoopSourcefn eq(&self, __arg_0: &LoopSource) -> bool[src]
fn eq(&self, __arg_0: &LoopSource) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for LoopSource[src]
impl Eq for LoopSourceimpl Encodable for LoopSource[src]
impl Encodable for LoopSourcefn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Decodable for LoopSource[src]
impl Decodable for LoopSourcefn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<LoopSource, __D::Error>[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<LoopSource, __D::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Hash for LoopSource[src]
impl Hash for LoopSourcefn hash<__H: Hasher>(&self, __arg_0: &mut __H)[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for LoopSource[src]
impl Debug for LoopSourcefn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
fn fmt(&self, __arg_0: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for LoopSource[src]
impl Copy for LoopSourceimpl<'a, 'tcx> HashStable<StableHashingContext<'a>> for LoopSource[src]
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for LoopSourcefn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)[src]
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Auto Trait Implementations
impl Send for LoopSource
impl Send for LoopSourceimpl Sync for LoopSource
impl Sync for LoopSource