Struct rustc_hir_analysis::check::generator_interior::drop_ranges::DropRanges
source · [−]pub struct DropRanges {
tracked_value_map: FxHashMap<TrackedValue, TrackedValueIndex>,
nodes: IndexVec<PostOrderId, NodeInfo>,
borrowed_temporaries: Option<FxHashSet<HirId>>,
}
Fields
tracked_value_map: FxHashMap<TrackedValue, TrackedValueIndex>
nodes: IndexVec<PostOrderId, NodeInfo>
borrowed_temporaries: Option<FxHashSet<HirId>>
Implementations
sourceimpl DropRanges
impl DropRanges
pub fn is_dropped_at(&self, hir_id: HirId, location: usize) -> bool
pub fn is_borrowed_temporary(&self, expr: &Expr<'_>) -> 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> Captures<'a> for Twhere
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: 88 bytes