#[repr(C)]pub struct TiMemorySlice {
pub memory: TiMemory,
pub offset: u64,
pub size: u64,
}Expand description
Structure TiMemorySlice
A subsection of a memory allocation. The sum of offset and size cannot exceed the size of memory.
Fields§
§memory: TiMemoryThe subsectioned memory allocation.
offset: u64Offset from the beginning of the allocation.
size: u64Size of the subsection.
Trait Implementations§
Source§impl Clone for TiMemorySlice
impl Clone for TiMemorySlice
Source§fn clone(&self) -> TiMemorySlice
fn clone(&self) -> TiMemorySlice
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 moreimpl Copy for TiMemorySlice
Auto Trait Implementations§
impl Freeze for TiMemorySlice
impl RefUnwindSafe for TiMemorySlice
impl Send for TiMemorySlice
impl Sync for TiMemorySlice
impl Unpin for TiMemorySlice
impl UnwindSafe for TiMemorySlice
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