Struct fuel_types::MemLoc
source · pub struct MemLoc<const ADDR: usize, const SIZE: usize>;
Expand description
A location in memory starting at ADDR
and ending at ADDR + SIZE
.
This is a zero-sized type to encode addresses that are known at compile time.
Implementations§
Trait Implementations§
source§impl<const ADDR: usize, const SIZE: usize> Ord for MemLoc<ADDR, SIZE>
impl<const ADDR: usize, const SIZE: usize> Ord for MemLoc<ADDR, SIZE>
1.21.0 · 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<const ADDR: usize, const SIZE: usize> PartialEq<MemLoc<ADDR, SIZE>> for MemLoc<ADDR, SIZE>
impl<const ADDR: usize, const SIZE: usize> PartialEq<MemLoc<ADDR, SIZE>> for MemLoc<ADDR, SIZE>
source§impl<const ADDR: usize, const SIZE: usize> PartialOrd<MemLoc<ADDR, SIZE>> for MemLoc<ADDR, SIZE>
impl<const ADDR: usize, const SIZE: usize> PartialOrd<MemLoc<ADDR, SIZE>> for MemLoc<ADDR, SIZE>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<const ADDR: usize, const SIZE: usize> Copy for MemLoc<ADDR, SIZE>
impl<const ADDR: usize, const SIZE: usize> Eq for MemLoc<ADDR, SIZE>
impl<const ADDR: usize, const SIZE: usize> StructuralEq for MemLoc<ADDR, SIZE>
impl<const ADDR: usize, const SIZE: usize> StructuralPartialEq for MemLoc<ADDR, SIZE>
Auto Trait Implementations§
impl<const ADDR: usize, const SIZE: usize> RefUnwindSafe for MemLoc<ADDR, SIZE>
impl<const ADDR: usize, const SIZE: usize> Send for MemLoc<ADDR, SIZE>
impl<const ADDR: usize, const SIZE: usize> Sync for MemLoc<ADDR, SIZE>
impl<const ADDR: usize, const SIZE: usize> Unpin for MemLoc<ADDR, SIZE>
impl<const ADDR: usize, const SIZE: usize> UnwindSafe for MemLoc<ADDR, SIZE>
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