pub struct TaintAnalysis { /* private fields */ }Implementations§
Source§impl TaintAnalysis
impl TaintAnalysis
Sourcepub fn get_definition(&self, var: &VariableName) -> Option<VariableUse>
pub fn get_definition(&self, var: &VariableName) -> Option<VariableUse>
Get the variable use corresponding to the definition of the variable.
pub fn definitions(&self) -> impl Iterator<Item = &VariableUse>
Sourcepub fn get_declaration(&self, var: &VariableName) -> Option<VariableUse>
pub fn get_declaration(&self, var: &VariableName) -> Option<VariableUse>
Get the variable use corresponding to the declaration of the variable.
pub fn declarations(&self) -> impl Iterator<Item = &VariableUse>
Sourcepub fn single_step_taint(&self, source: &VariableName) -> HashSet<VariableName>
pub fn single_step_taint(&self, source: &VariableName) -> HashSet<VariableName>
Returns variables tainted in a single step by source.
Sourcepub fn multi_step_taint(&self, source: &VariableName) -> HashSet<VariableName>
pub fn multi_step_taint(&self, source: &VariableName) -> HashSet<VariableName>
Returns variables tainted in zero or more steps by source.
Sourcepub fn taints_any(
&self,
source: &VariableName,
sinks: &HashSet<VariableName>,
) -> bool
pub fn taints_any( &self, source: &VariableName, sinks: &HashSet<VariableName>, ) -> bool
Returns true if the source taints any of the sinks.
Trait Implementations§
Source§impl Clone for TaintAnalysis
impl Clone for TaintAnalysis
Source§fn clone(&self) -> TaintAnalysis
fn clone(&self) -> TaintAnalysis
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 Default for TaintAnalysis
impl Default for TaintAnalysis
Source§fn default() -> TaintAnalysis
fn default() -> TaintAnalysis
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TaintAnalysis
impl RefUnwindSafe for TaintAnalysis
impl Send for TaintAnalysis
impl Sync for TaintAnalysis
impl Unpin for TaintAnalysis
impl UnwindSafe for TaintAnalysis
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