pub struct MemoryMap { /* private fields */ }
Expand description
All interactions are through this object
Implementations§
Source§impl MemoryMap
impl MemoryMap
pub fn new() -> Self
Sourcepub fn get_all(&self) -> &HashMap<u16, AddressInfo>
pub fn get_all(&self) -> &HashMap<u16, AddressInfo>
Borrow the underlying HashMap
Sourcepub fn get_one(&self, addr: i64) -> Option<AddressInfo>
pub fn get_one(&self, addr: i64) -> Option<AddressInfo>
Get data for one address. @param addr address in the range -32767 to 65535
Sourcepub fn get_one_and_split(&self, addr: i64) -> Option<Vec<AddressInfo>>
pub fn get_one_and_split(&self, addr: i64) -> Option<Vec<AddressInfo>>
Get data for one address and split by context @param addr Array of AddressInfo objects, one for each context, or undefined
Auto Trait Implementations§
impl Freeze for MemoryMap
impl RefUnwindSafe for MemoryMap
impl Send for MemoryMap
impl Sync for MemoryMap
impl Unpin for MemoryMap
impl UnwindSafe for MemoryMap
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