pub enum SummaryRole {
Allocator,
Reallocator,
Deallocator,
Source,
Sink,
Sanitizer,
StringOperation,
Io,
Custom(String),
}Expand description
High-level role of a function in the summary system.
Mirrors Role but is self-contained for summary serialization
without depending on the spec module’s enum variants.
Variants§
Allocator
Memory allocator (e.g., malloc, new).
Reallocator
Memory reallocator (e.g., realloc).
Deallocator
Memory deallocator (e.g., free, delete).
Source
Taint source (e.g., getenv, recv).
Sink
Taint sink (e.g., system, exec).
Sanitizer
Taint sanitizer.
StringOperation
String operation (e.g., strlen, strcpy).
Io
I/O operation (e.g., read, write).
Custom(String)
Custom role for domain-specific analyses.
Trait Implementations§
Source§impl Clone for SummaryRole
impl Clone for SummaryRole
Source§fn clone(&self) -> SummaryRole
fn clone(&self) -> SummaryRole
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 SummaryRole
impl Debug for SummaryRole
Source§impl<'de> Deserialize<'de> for SummaryRole
impl<'de> Deserialize<'de> for SummaryRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&Role> for SummaryRole
impl From<&Role> for SummaryRole
Source§impl From<&SummaryRole> for Role
impl From<&SummaryRole> for Role
Source§fn from(role: &SummaryRole) -> Self
fn from(role: &SummaryRole) -> Self
Converts to this type from the input type.
Source§impl Hash for SummaryRole
impl Hash for SummaryRole
Source§impl Ord for SummaryRole
impl Ord for SummaryRole
Source§fn cmp(&self, other: &SummaryRole) -> Ordering
fn cmp(&self, other: &SummaryRole) -> 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 SummaryRole
impl PartialEq for SummaryRole
Source§impl PartialOrd for SummaryRole
impl PartialOrd for SummaryRole
Source§impl Serialize for SummaryRole
impl Serialize for SummaryRole
impl Eq for SummaryRole
impl StructuralPartialEq for SummaryRole
Auto Trait Implementations§
impl Freeze for SummaryRole
impl RefUnwindSafe for SummaryRole
impl Send for SummaryRole
impl Sync for SummaryRole
impl Unpin for SummaryRole
impl UnsafeUnpin for SummaryRole
impl UnwindSafe for SummaryRole
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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.