pub struct TaintAnalysis { /* private fields */ }Implementations
sourceimpl 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
sourceimpl Clone for TaintAnalysis
impl Clone for TaintAnalysis
sourcefn clone(&self) -> TaintAnalysis
fn clone(&self) -> TaintAnalysis
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Default for TaintAnalysis
impl Default for TaintAnalysis
sourcefn default() -> TaintAnalysis
fn default() -> TaintAnalysis
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for TaintAnalysis
impl Send for TaintAnalysis
impl Sync for TaintAnalysis
impl Unpin for TaintAnalysis
impl UnwindSafe for TaintAnalysis
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