pub trait ByteArray:
Sealed
+ Copy
+ Send
+ Sync
+ AsMut<[u8]>
+ 'static { }Expand description
This ByteArray trait is a workaround as generic-const-exprs
is not yet stable.
The trait is sealed, so only [u8; N] can be used as a queue cell:
ⓘ
#[derive(SchemaRead, SchemaWrite, SchemaDynamic)]
#[wincode(crate = "agave_event_system::__private::event_macro")]
struct Message {
value: u64,
}
impl Event for Message {
type QueueCell = [u64; 1];
}Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".