pub(crate) struct ContentFacts<'tcx> {
pub initialized: bool,
pub may_be_uninit: bool,
pub inner_uninit: bool,
pub written_pointee_ty: Option<Ty<'tcx>>,
pub cstr_trusted: bool,
pub utf8_trusted: bool,
pub split_transmute_to: Option<Ty<'tcx>>,
}Expand description
Per-allocation content facts: whether the allocation’s contents are
readable (initialized), whether they were asserted to be a valid C string /
UTF-8, and whether they were licensed for SplitTransmute re-interpretation.
These describe the stored bytes/values, so they live on MemoryContent
next to that data, rather than on AllocFacts (lifecycle).
Fields§
§initialized: boolWhether the allocation contains a readable value.
may_be_uninit: boolWhether some explored branch may leave this allocation uninitialized.
inner_uninit: boolWhether the inner T is still uninitialized after MaybeUninit::uninit.
written_pointee_ty: Option<Ty<'tcx>>Type of a complete initialized write at offset zero; cleared by invalidating writes.
cstr_trusted: boolTrusted ValidCStr contract or invariant evidence.
utf8_trusted: boolTrusted ValidString contract evidence.
split_transmute_to: Option<Ty<'tcx>>Destination element type licensed by SplitTransmute; None grants none.
Trait Implementations§
Source§impl<'tcx> Clone for ContentFacts<'tcx>
impl<'tcx> Clone for ContentFacts<'tcx>
Source§impl<'tcx> Debug for ContentFacts<'tcx>
impl<'tcx> Debug for ContentFacts<'tcx>
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for ContentFacts<'tcx>
impl<'tcx> !UnwindSafe for ContentFacts<'tcx>
impl<'tcx> DynSend for ContentFacts<'tcx>
impl<'tcx> DynSync for ContentFacts<'tcx>
impl<'tcx> Forget for ContentFacts<'tcx>
impl<'tcx> Freeze for ContentFacts<'tcx>
impl<'tcx> Move for ContentFacts<'tcx>
impl<'tcx> Send for ContentFacts<'tcx>
impl<'tcx> Sync for ContentFacts<'tcx>
impl<'tcx> Unpin for ContentFacts<'tcx>
impl<'tcx> UnsafeUnpin for ContentFacts<'tcx>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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