Trait AllValid

Source
pub unsafe trait AllValid { }
Expand description

An unsafe marker trait for types for which all bit patterns are valid. This is required in order for it to be safe to read a value of a particular type out of the sandbox from the HostSharedMemory.

§Safety

This must only be implemented for types for which all bit patterns are valid. It requires that any (non-undef/poison) value of the correct size can be transmuted to the type.

Implementations on Foreign Types§

Source§

impl AllValid for i8

Source§

impl AllValid for i16

Source§

impl AllValid for i32

Source§

impl AllValid for i64

Source§

impl AllValid for u8

Source§

impl AllValid for u16

Source§

impl AllValid for u32

Source§

impl AllValid for u64

Source§

impl AllValid for [u8; 16]

Implementors§