pub trait FromMemory: Sized {
// Required method
fn from_memory<I, M>(
fields: &mut I,
mem: &mut M,
events: &mut EventWriter
) -> Result<Self, MemoryError>
where M: ReadMemory,
I: Iterator<Item = InMemory>;
}
Expand description
Types that can be read from KCEP program memory, scattered across multiple places in the address space.
Required Methods§
sourcefn from_memory<I, M>(
fields: &mut I,
mem: &mut M,
events: &mut EventWriter
) -> Result<Self, MemoryError>
fn from_memory<I, M>( fields: &mut I, mem: &mut M, events: &mut EventWriter ) -> Result<Self, MemoryError>
Read this type from memory, getting each field of the type from a different memory address.
Object Safety§
This trait is not object safe.