Struct rustc::infer::region_inference::SameRegions   
                   
                       [−]
                   
               [src]
pub struct SameRegions {
    pub scope_id: NodeId,
    pub regions: Vec<BoundRegion>,
}Unstable (
rustc_private)SameRegions is used to group regions that we think are the same and would
like to indicate so to the user.
For example, the following function
struct Foo { bar: i32 } fn foo2<'a, 'b>(x: &'a Foo) -> &'b i32 { &x.bar }
would report an error because we expect 'a and 'b to match, and so we group
'a and 'b together inside a SameRegions struct
Fields
scope_id: NodeId
                           Unstable (
rustc_private)regions: Vec<BoundRegion>
                           Unstable (
rustc_private)Methods
impl SameRegions[src]
fn contains(&self, other: &BoundRegion) -> bool
fn push(&mut self, other: BoundRegion)
Trait Implementations
Derived Implementations
impl Debug for SameRegions[src]
impl Clone for SameRegions[src]
fn clone(&self) -> SameRegions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more