pub trait InputEventBuffer: Sized {
// Required methods
fn len(&self) -> u32;
fn get(&self, index: u32) -> Option<&UnknownEvent>;
}Expand description
A trait for all types which can act as an ordered, indexed list of UnknownEvents.
This is the backing implementation of an InputEvents, which
is how input events are shared from the CLAP host to the plugin.
Note that events are indexed using u32 instead of the standard usize, to match the CLAP
specification.
Required Methods§
Sourcefn get(&self, index: u32) -> Option<&UnknownEvent>
fn get(&self, index: u32) -> Option<&UnknownEvent>
Returns the event at the given index.
If index is out of bounds, then this must return None instead.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".