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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.