Merge pull request #2129 from bytecodealliance/pch/wiggle_doc_fixes

wiggle: doc fixes
This commit is contained in:
Pat Hickey
2020-08-13 14:24:29 -07:00
committed by GitHub

View File

@@ -45,11 +45,11 @@ pub trait GuestType<'a>: Sized {
}
/// A trait for `GuestType`s that have the same representation in guest memory
/// as in Rust. These types can be used with the `GuestPtr::as_raw` method to
/// 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 implemengation ensures that the
/// GuestPtr::as_raw methods are safe. This trait should only ever be implemented
/// GuestPtr::as_slice methods are safe. This trait should only ever be implemented
/// by wiggle_generate-produced code.
pub unsafe trait GuestTypeTransparent<'a>: GuestType<'a> {
/// Checks that the memory at `ptr` is a valid representation of `Self`.