pub enum TaintLocation {
Return,
Param(u32),
Unknown,
}Expand description
A location in taint propagation rules.
Serializes as "return" for TaintLocation::Return, "param.N" for
TaintLocation::Param, and the original string for TaintLocation::Unknown.
Variants§
Return
The return value.
Param(u32)
A parameter by index.
Unknown
Unknown location (forward compatibility for unrecognized strings).
Trait Implementations§
Source§impl Clone for TaintLocation
impl Clone for TaintLocation
Source§fn clone(&self) -> TaintLocation
fn clone(&self) -> TaintLocation
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 TaintLocation
impl Debug for TaintLocation
Source§impl<'de> Deserialize<'de> for TaintLocation
impl<'de> Deserialize<'de> for TaintLocation
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TaintLocation
impl Display for TaintLocation
Source§impl PartialEq for TaintLocation
impl PartialEq for TaintLocation
Source§impl Serialize for TaintLocation
impl Serialize for TaintLocation
impl Copy for TaintLocation
impl Eq for TaintLocation
impl StructuralPartialEq for TaintLocation
Auto Trait Implementations§
impl Freeze for TaintLocation
impl RefUnwindSafe for TaintLocation
impl Send for TaintLocation
impl Sync for TaintLocation
impl Unpin for TaintLocation
impl UnsafeUnpin for TaintLocation
impl UnwindSafe for TaintLocation
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> 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.