pub struct PageSegment(/* private fields */);Expand description
An import/export segment that stores an inner VM page and its address.
The page is stored in the first 4096 bytes, the address is encoded using little-endian format in the last 8 bytes of the segment.
[ page(4096) | address(8) ]
Implementations§
Trait Implementations§
Source§impl AsMut<[u8]> for PageSegment
impl AsMut<[u8]> for PageSegment
Source§impl AsRef<[u8]> for PageSegment
impl AsRef<[u8]> for PageSegment
Source§impl Clone for PageSegment
impl Clone for PageSegment
Source§fn clone(&self) -> PageSegment
fn clone(&self) -> PageSegment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<FixedVec<u8, SegmentLen>> for PageSegment
impl From<FixedVec<u8, SegmentLen>> for PageSegment
Source§impl From<PageSegment> for Segment
impl From<PageSegment> for Segment
Source§fn from(other: PageSegment) -> Self
fn from(other: PageSegment) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PageSegment
impl RefUnwindSafe for PageSegment
impl Send for PageSegment
impl Sync for PageSegment
impl Unpin for PageSegment
impl UnwindSafe for PageSegment
Blanket Implementations§
Source§impl<T, U> AsByteSlice<T> for U
impl<T, U> AsByteSlice<T> for U
fn as_byte_slice(&self) -> &[u8]
Source§impl<T, U> AsMutByteSlice<T> for U
impl<T, U> AsMutByteSlice<T> for U
fn as_mut_byte_slice(&mut self) -> &mut [u8]
Source§impl<U> AsMutSliceOf for U
impl<U> AsMutSliceOf for U
fn as_mut_slice_of<T>(&mut self) -> Result<&mut [T], Error>where
T: FromByteSlice,
Source§impl<U> AsSliceOf for U
impl<U> AsSliceOf for U
fn as_slice_of<T>(&self) -> Result<&[T], Error>where
T: FromByteSlice,
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