pub unsafe trait GuestTypeTransparent<'a>: GuestType<'a> { }
Expand description

A trait for GuestTypes that have the same representation in guest memory as in Rust. These types can be used with the GuestPtr::as_slice method to view as a slice.

Unsafe trait because a correct GuestTypeTransparent implementation ensures that the GuestPtr::as_slice methods are safe, notably that the representation on the host matches the guest and all bit patterns are valid. This trait should only ever be implemented by wiggle_generate-produced code.

Implementations on Foreign Types§

source§

impl<'a> GuestTypeTransparent<'a> for i8

source§

impl<'a> GuestTypeTransparent<'a> for u32

source§

impl<'a> GuestTypeTransparent<'a> for u8

source§

impl<'a> GuestTypeTransparent<'a> for i32

source§

impl<'a> GuestTypeTransparent<'a> for u16

source§

impl<'a> GuestTypeTransparent<'a> for i64

source§

impl<'a> GuestTypeTransparent<'a> for u64

source§

impl<'a> GuestTypeTransparent<'a> for f64

source§

impl<'a> GuestTypeTransparent<'a> for f32

source§

impl<'a> GuestTypeTransparent<'a> for i16

Implementors§