pub struct MemoryOffset(pub u16);Tuple Fields§
§0: u16Implementations§
Source§impl MemoryOffset
impl MemoryOffset
pub fn space( &mut self, memory_size: MemorySize, alignment: MemoryAlignment, ) -> Self
Source§impl MemoryOffset
impl MemoryOffset
pub fn as_size(&self) -> MemorySize
Source§impl MemoryOffset
impl MemoryOffset
pub fn add(&self, size: MemorySize, alignment: MemoryAlignment) -> MemoryOffset
Trait Implementations§
Source§impl Clone for MemoryOffset
impl Clone for MemoryOffset
Source§fn clone(&self) -> MemoryOffset
fn clone(&self) -> MemoryOffset
Returns a copy 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 Debug for MemoryOffset
impl Debug for MemoryOffset
Source§impl Into<MemoryOffset> for MemoryAlignment
impl Into<MemoryOffset> for MemoryAlignment
Source§fn into(self) -> MemoryOffset
fn into(self) -> MemoryOffset
Converts this type into the (usually inferred) input type.
impl Copy for MemoryOffset
Auto Trait Implementations§
impl Freeze for MemoryOffset
impl RefUnwindSafe for MemoryOffset
impl Send for MemoryOffset
impl Sync for MemoryOffset
impl Unpin for MemoryOffset
impl UnwindSafe for MemoryOffset
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