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?
Methods
impl LifetimeDefOrigin[src]
impl LifetimeDefOriginfn from_is_in_band(is_in_band: bool) -> Self[src]
fn from_is_in_band(is_in_band: bool) -> Self🔬 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 LifetimeDefOriginfn 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 LifetimeDefOriginimpl Clone for LifetimeDefOrigin[src]
impl Clone for LifetimeDefOriginfn clone(&self) -> LifetimeDefOrigin[src]
fn clone(&self) -> LifetimeDefOriginReturns 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 LifetimeDefOriginfn eq(&self, other: &LifetimeDefOrigin) -> bool[src]
fn eq(&self, other: &LifetimeDefOrigin) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for LifetimeDefOrigin[src]
impl Eq for LifetimeDefOriginfn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)impl Hash for LifetimeDefOrigin[src]
impl Hash for LifetimeDefOriginfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &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 LifetimeDefOriginfn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>[src]
fn encode<__S: Encoder>(&self, s: &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 LifetimeDefOriginfn decode<__D: Decoder>(d: &mut __D) -> Result<LifetimeDefOrigin, __D::Error>[src]
fn decode<__D: Decoder>(d: &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 LifetimeDefOriginAuto Trait Implementations
impl Send for LifetimeDefOrigin
impl Send for LifetimeDefOriginimpl Sync for LifetimeDefOrigin
impl Sync for LifetimeDefOrigin