pub trait IPort {
// Required methods
fn read<T: ValueStore, U: CacheStore>(
&self,
address: i64,
buf: &mut [u8],
device: &mut impl Device,
store: &impl NodeStore,
cx: &mut ValueCtxt<T, U>,
) -> GenApiResult<()>;
fn write<T: ValueStore, U: CacheStore>(
&self,
address: i64,
buf: &[u8],
device: &mut impl Device,
store: &impl NodeStore,
cx: &mut ValueCtxt<T, U>,
) -> GenApiResult<()>;
}
Required Methods§
fn read<T: ValueStore, U: CacheStore>( &self, address: i64, buf: &mut [u8], device: &mut impl Device, store: &impl NodeStore, cx: &mut ValueCtxt<T, U>, ) -> GenApiResult<()>
fn write<T: ValueStore, U: CacheStore>( &self, address: i64, buf: &[u8], device: &mut impl Device, store: &impl NodeStore, cx: &mut ValueCtxt<T, U>, ) -> GenApiResult<()>
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.