rustc_borrowck::region_infer::values

Trait ToElementIndex

Source
pub(crate) trait ToElementIndex: Debug + Copy {
    // Required methods
    fn add_to_row<N: Idx>(self, values: &mut RegionValues<N>, row: N) -> bool;
    fn contained_in_row<N: Idx>(self, values: &RegionValues<N>, row: N) -> bool;
}

Required Methods§

Source

fn add_to_row<N: Idx>(self, values: &mut RegionValues<N>, row: N) -> bool

Source

fn contained_in_row<N: Idx>(self, values: &RegionValues<N>, row: N) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ToElementIndex for Location

Source§

fn add_to_row<N: Idx>(self, values: &mut RegionValues<N>, row: N) -> bool

Source§

fn contained_in_row<N: Idx>(self, values: &RegionValues<N>, row: N) -> bool

Source§

impl ToElementIndex for RegionVid

Source§

fn add_to_row<N: Idx>(self, values: &mut RegionValues<N>, row: N) -> bool

Source§

fn contained_in_row<N: Idx>(self, values: &RegionValues<N>, row: N) -> bool

Source§

impl ToElementIndex for PlaceholderRegion

Source§

fn add_to_row<N: Idx>(self, values: &mut RegionValues<N>, row: N) -> bool

Source§

fn contained_in_row<N: Idx>(self, values: &RegionValues<N>, row: N) -> bool

Implementors§