pub struct Tainted<T> { /* private fields */ }Expand description
External content with its provenance welded on. The value is private;
peek lends, map/join derive with automatic union, and nothing
returns T by value.
Implementations§
Source§impl<T> Tainted<T>
impl<T> Tainted<T>
Sourcepub fn new(value: T, source: TaintSource) -> Tainted<T>
pub fn new(value: T, source: TaintSource) -> Tainted<T>
City-wide sole entrance for external content. Custody (secret scan before CAS) composes at this call site in the effect layer; the type itself stays pure.
pub fn taint(&self) -> &TaintSet
Trait Implementations§
impl<T: Eq> Eq for Tainted<T>
impl<T: PartialEq> StructuralPartialEq for Tainted<T>
Auto Trait Implementations§
impl<T> Freeze for Tainted<T>where
T: Freeze,
impl<T> RefUnwindSafe for Tainted<T>where
T: RefUnwindSafe,
impl<T> Send for Tainted<T>where
T: Send,
impl<T> Sync for Tainted<T>where
T: Sync,
impl<T> Unpin for Tainted<T>where
T: Unpin,
impl<T> UnsafeUnpin for Tainted<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Tainted<T>where
T: UnwindSafe,
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