pub struct EscapeAnalysis {
pub allocs: Vec<HeapAllocSummary>,
pub escaping: HashSet<u32>,
}Expand description
Escape analysis result
Fields§
§allocs: Vec<HeapAllocSummary>§escaping: HashSet<u32>Implementations§
Source§impl EscapeAnalysis
impl EscapeAnalysis
pub fn new() -> Self
pub fn add_alloc(&mut self, summary: HeapAllocSummary)
pub fn does_escape(&self, alloc_id: u32) -> bool
pub fn non_escaping_count(&self) -> usize
Trait Implementations§
Source§impl Debug for EscapeAnalysis
impl Debug for EscapeAnalysis
Source§impl Default for EscapeAnalysis
impl Default for EscapeAnalysis
Source§fn default() -> EscapeAnalysis
fn default() -> EscapeAnalysis
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EscapeAnalysis
impl RefUnwindSafe for EscapeAnalysis
impl Send for EscapeAnalysis
impl Sync for EscapeAnalysis
impl Unpin for EscapeAnalysis
impl UnsafeUnpin for EscapeAnalysis
impl UnwindSafe for EscapeAnalysis
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more