pub struct TaintSet(/* private fields */);Expand description
Union semilattice of provenance. Empty means internally produced. Serializable (event payloads and approval items carry source lists); order is BTreeSet’s, hence deterministic.
Implementations§
Source§impl TaintSet
impl TaintSet
pub fn empty() -> TaintSet
pub fn of(source: TaintSource) -> TaintSet
pub fn union(&self, other: &TaintSet) -> TaintSet
pub fn is_empty(&self) -> bool
pub fn contains(&self, source: &TaintSource) -> bool
pub fn len(&self) -> usize
pub fn sources(&self) -> impl Iterator<Item = &TaintSource>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaintSet
impl<'de> Deserialize<'de> for TaintSet
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 Display for TaintSet
The sources, comma-separated in the set’s order: the one wording
every C15 refusal uses to say where a run’s content came from.
impl Display for TaintSet
The sources, comma-separated in the set’s order: the one wording every C15 refusal uses to say where a run’s content came from.
impl Eq for TaintSet
impl StructuralPartialEq for TaintSet
Auto Trait Implementations§
impl Freeze for TaintSet
impl RefUnwindSafe for TaintSet
impl Send for TaintSet
impl Sync for TaintSet
impl Unpin for TaintSet
impl UnsafeUnpin for TaintSet
impl UnwindSafe for TaintSet
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