#[repr(transparent)]pub struct FatPointer(pub u64);Expand description
Struct that represents a fat pointer where the upper 32 bits are the offset and the lower 32 bits are the size of the data.
Primarily used for passing data to and from the host environment.
It is not reccomended to construct this directly, instead use leak_to_shared_memory
The maximum offset and size representable is 4GB each
Tuple Fields§
§0: u64Implementations§
Source§impl FatPointer
impl FatPointer
Trait Implementations§
Source§impl Debug for FatPointer
impl Debug for FatPointer
impl Eq for FatPointer
Source§impl PartialEq for FatPointer
impl PartialEq for FatPointer
impl StructuralPartialEq for FatPointer
Auto Trait Implementations§
impl Freeze for FatPointer
impl RefUnwindSafe for FatPointer
impl Send for FatPointer
impl Sync for FatPointer
impl Unpin for FatPointer
impl UnsafeUnpin for FatPointer
impl UnwindSafe for FatPointer
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