Struct rustc_mir::borrow_check::region_infer::values::PlaceholderIndices [−][src]
pub(crate) struct PlaceholderIndices {
indices: FxIndexSet<PlaceholderRegion>,
}Expand description
Maps from ty::PlaceholderRegion values that are used in the rest of
rustc to the internal PlaceholderIndex values that are used in
NLL.
Fields
indices: FxIndexSet<PlaceholderRegion>Implementations
impl PlaceholderIndices[src]
impl PlaceholderIndices[src]pub(crate) fn insert(
&mut self,
placeholder: PlaceholderRegion
) -> PlaceholderIndex[src]
&mut self,
placeholder: PlaceholderRegion
) -> PlaceholderIndex
pub(crate) fn lookup_index(
&self,
placeholder: PlaceholderRegion
) -> PlaceholderIndex[src]
&self,
placeholder: PlaceholderRegion
) -> PlaceholderIndex
pub(crate) fn lookup_placeholder(
&self,
placeholder: PlaceholderIndex
) -> PlaceholderRegion[src]
&self,
placeholder: PlaceholderIndex
) -> PlaceholderRegion
pub(crate) fn len(&self) -> usize[src]
Trait Implementations
impl Default for PlaceholderIndices[src]
impl Default for PlaceholderIndices[src]fn default() -> PlaceholderIndices[src]
fn default() -> PlaceholderIndices[src]Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for PlaceholderIndices
impl Send for PlaceholderIndices
impl Sync for PlaceholderIndices
impl Unpin for PlaceholderIndices
impl UnwindSafe for PlaceholderIndices
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]