pub struct VecCandidate {
pub variable: String,
pub malloc_index: usize,
pub free_index: Option<usize>,
pub capacity_expr: Option<HirExpression>,
}Expand description
Represents a detected Vec<T> pattern candidate.
Fields§
§variable: StringVariable name that holds the allocated array pointer
malloc_index: usizeStatement index where malloc occurs
free_index: Option<usize>Statement index where free occurs (if found)
capacity_expr: Option<HirExpression>Expression representing the array capacity (number of elements)
Trait Implementations§
Source§impl Clone for VecCandidate
impl Clone for VecCandidate
Source§fn clone(&self) -> VecCandidate
fn clone(&self) -> VecCandidate
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 VecCandidate
impl Debug for VecCandidate
Source§impl PartialEq for VecCandidate
impl PartialEq for VecCandidate
impl StructuralPartialEq for VecCandidate
Auto Trait Implementations§
impl Freeze for VecCandidate
impl RefUnwindSafe for VecCandidate
impl Send for VecCandidate
impl Sync for VecCandidate
impl Unpin for VecCandidate
impl UnwindSafe for VecCandidate
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