pub struct BoxCandidate {
pub variable: String,
pub malloc_index: usize,
pub free_index: Option<usize>,
}Expand description
Represents a detected Box<T> pattern candidate.
Fields§
§variable: StringVariable name that holds the allocated pointer
malloc_index: usizeStatement index where malloc occurs
free_index: Option<usize>Statement index where free occurs (if found)
Trait Implementations§
Source§impl Clone for BoxCandidate
impl Clone for BoxCandidate
Source§fn clone(&self) -> BoxCandidate
fn clone(&self) -> BoxCandidate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BoxCandidate
impl Debug for BoxCandidate
Source§impl PartialEq for BoxCandidate
impl PartialEq for BoxCandidate
impl Eq for BoxCandidate
impl StructuralPartialEq for BoxCandidate
Auto Trait Implementations§
impl Freeze for BoxCandidate
impl RefUnwindSafe for BoxCandidate
impl Send for BoxCandidate
impl Sync for BoxCandidate
impl Unpin for BoxCandidate
impl UnwindSafe for BoxCandidate
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