Struct cwe_checker_lib::checkers::cwe_416::WarningContext
source · pub struct WarningContext { /* private fields */ }
Expand description
A struct for collecting CWE warnings together with context information that can be used to post-process the warning after the fixpoint has been computed.
Implementations§
source§impl WarningContext
impl WarningContext
sourcepub fn new(
cwe: CweWarning,
object_and_free_ids: Vec<(AbstractIdentifier, Vec<Tid>)>,
root_function: Tid
) -> Self
pub fn new( cwe: CweWarning, object_and_free_ids: Vec<(AbstractIdentifier, Vec<Tid>)>, root_function: Tid ) -> Self
Generate a new warning context object.
Trait Implementations§
source§impl Clone for WarningContext
impl Clone for WarningContext
source§fn clone(&self) -> WarningContext
fn clone(&self) -> WarningContext
Returns a copy 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 WarningContext
impl Debug for WarningContext
source§impl Hash for WarningContext
impl Hash for WarningContext
source§impl Ord for WarningContext
impl Ord for WarningContext
source§fn cmp(&self, other: &WarningContext) -> Ordering
fn cmp(&self, other: &WarningContext) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for WarningContext
impl PartialEq for WarningContext
source§fn eq(&self, other: &WarningContext) -> bool
fn eq(&self, other: &WarningContext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for WarningContext
impl PartialOrd for WarningContext
source§fn partial_cmp(&self, other: &WarningContext) -> Option<Ordering>
fn partial_cmp(&self, other: &WarningContext) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for WarningContext
impl StructuralEq for WarningContext
impl StructuralPartialEq for WarningContext
Auto Trait Implementations§
impl RefUnwindSafe for WarningContext
impl Send for WarningContext
impl Sync for WarningContext
impl Unpin for WarningContext
impl UnwindSafe for WarningContext
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.