pub enum NamedStructInitialDef {
AllFieldsUntainted,
AllFieldsTainted,
InitialDef(TaintedType),
}
Expand description
Describes the initial definition (taint state) of a named struct. It may always become more tainted than this initial state during taint-tracking, but never less.
Variants§
AllFieldsUntainted
All fields of this named struct begin untainted. This is the default for all named structs unless otherwise specified.
AllFieldsTainted
All fields of this named struct begin tainted.
InitialDef(TaintedType)
Use this TaintedType
(which must be a TaintedType::Struct
variant)
as the initial definition for this named struct.
This must be compatible with the LLVM type of the struct.
Auto Trait Implementations§
impl Freeze for NamedStructInitialDef
impl !RefUnwindSafe for NamedStructInitialDef
impl !Send for NamedStructInitialDef
impl !Sync for NamedStructInitialDef
impl Unpin for NamedStructInitialDef
impl !UnwindSafe for NamedStructInitialDef
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more