pub struct MemoryLocation<O> {
pub object: O,
pub offset: i64,
pub byte_len: usize,
}Fields§
§object: O§offset: i64§byte_len: usizeImplementations§
Trait Implementations§
Source§impl<O: Clone> Clone for MemoryLocation<O>
impl<O: Clone> Clone for MemoryLocation<O>
Source§fn clone(&self) -> MemoryLocation<O>
fn clone(&self) -> MemoryLocation<O>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<O: Copy> Copy for MemoryLocation<O>
Source§impl<O: Debug> Debug for MemoryLocation<O>
impl<O: Debug> Debug for MemoryLocation<O>
impl<O: Eq> Eq for MemoryLocation<O>
Source§impl<O: Hash> Hash for MemoryLocation<O>
impl<O: Hash> Hash for MemoryLocation<O>
Source§impl<O: Ord> Ord for MemoryLocation<O>
impl<O: Ord> Ord for MemoryLocation<O>
Source§fn cmp(&self, other: &MemoryLocation<O>) -> Ordering
fn cmp(&self, other: &MemoryLocation<O>) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<O: PartialEq> PartialEq for MemoryLocation<O>
impl<O: PartialEq> PartialEq for MemoryLocation<O>
Source§impl<O: PartialOrd> PartialOrd for MemoryLocation<O>
impl<O: PartialOrd> PartialOrd for MemoryLocation<O>
impl<O: PartialEq> StructuralPartialEq for MemoryLocation<O>
Auto Trait Implementations§
impl<O> Freeze for MemoryLocation<O>where
O: Freeze,
impl<O> RefUnwindSafe for MemoryLocation<O>where
O: RefUnwindSafe,
impl<O> Send for MemoryLocation<O>where
O: Send,
impl<O> Sync for MemoryLocation<O>where
O: Sync,
impl<O> Unpin for MemoryLocation<O>where
O: Unpin,
impl<O> UnsafeUnpin for MemoryLocation<O>where
O: UnsafeUnpin,
impl<O> UnwindSafe for MemoryLocation<O>where
O: UnwindSafe,
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