Enum rustc::middle::resolve_lifetime::LifetimeDefOrigin
[−]
[src]
pub enum LifetimeDefOrigin { Explicit, InBand, }
🔬 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 origin of a named lifetime definition.
This is used to prevent the usage of in-band lifetimes in Fn
/fn
syntax.
Variants
Explicit
🔬 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?
InBand
🔬 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?
Trait Implementations
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for LifetimeDefOrigin
[src]
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for LifetimeDefOrigin
fn 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?
impl Copy for LifetimeDefOrigin
[src]
impl Copy for LifetimeDefOrigin
impl Clone for LifetimeDefOrigin
[src]
impl Clone for LifetimeDefOrigin
fn clone(&self) -> LifetimeDefOrigin
[src]
fn clone(&self) -> LifetimeDefOrigin
Returns 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 LifetimeDefOrigin
[src]
impl PartialEq for LifetimeDefOrigin
fn eq(&self, __arg_0: &LifetimeDefOrigin) -> bool
[src]
fn eq(&self, __arg_0: &LifetimeDefOrigin) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for LifetimeDefOrigin
[src]
impl Eq for LifetimeDefOrigin
impl Hash for LifetimeDefOrigin
[src]
impl Hash for LifetimeDefOrigin
fn 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 Encodable for LifetimeDefOrigin
[src]
impl Encodable for LifetimeDefOrigin
fn 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 LifetimeDefOrigin
[src]
impl Decodable for LifetimeDefOrigin
fn decode<__D: Decoder>(
__arg_0: &mut __D
) -> Result<LifetimeDefOrigin, __D::Error>
[src]
fn decode<__D: Decoder>(
__arg_0: &mut __D
) -> Result<LifetimeDefOrigin, __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 Debug for LifetimeDefOrigin
[src]
impl Debug for LifetimeDefOrigin
Auto Trait Implementations
impl Send for LifetimeDefOrigin
impl Send for LifetimeDefOrigin
impl Sync for LifetimeDefOrigin
impl Sync for LifetimeDefOrigin