Struct rustc_typeck::check::generator_interior::drop_ranges::DropRanges
source · [−]pub struct DropRanges {
tracked_value_map: FxHashMap<TrackedValue, TrackedValueIndex>,
nodes: IndexVec<PostOrderId, NodeInfo>,
}Fields
tracked_value_map: FxHashMap<TrackedValue, TrackedValueIndex>nodes: IndexVec<PostOrderId, NodeInfo>Implementations
sourceimpl DropRanges
impl DropRanges
pub fn is_dropped_at(&self, hir_id: HirId, location: usize) -> bool
sourcefn expect_node(&self, id: PostOrderId) -> &NodeInfo
fn expect_node(&self, id: PostOrderId) -> &NodeInfo
Returns a reference to the NodeInfo for a node, panicking if it does not exist
Auto Trait Implementations
impl RefUnwindSafe for DropRanges
impl Send for DropRanges
impl Sync for DropRanges
impl Unpin for DropRanges
impl UnwindSafe for DropRanges
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> Captures<'a> for T where
T: ?Sized,
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes