Struct rustc_typeck::variance::constraints::Constraint [−][src]
pub struct Constraint<'a> {
pub inferred: InferredIndex,
pub variance: &'a VarianceTerm<'a>,
}🔬 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?
Declares that the variable decl_id appears in a location with
variance variance.
Fields
inferred: InferredIndex
🔬 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?
variance: &'a VarianceTerm<'a>
🔬 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> Copy for Constraint<'a>[src]
impl<'a> Copy for Constraint<'a>impl<'a> Clone for Constraint<'a>[src]
impl<'a> Clone for Constraint<'a>fn clone(&self) -> Constraint<'a>[src]
fn clone(&self) -> Constraint<'a>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)1.0.0
[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl<'a> Send for Constraint<'a>
impl<'a> Send for Constraint<'a>impl<'a> Sync for Constraint<'a>
impl<'a> Sync for Constraint<'a>