pub struct ClapEventBuffer { /* private fields */ }Expand description
An ordered buffer of ClapEvents for a single processing block.
Implementations§
Source§impl ClapEventBuffer
impl ClapEventBuffer
Sourcepub fn new(events: Vec<ClapEvent>) -> Self
pub fn new(events: Vec<ClapEvent>) -> Self
Builds a buffer from a pre-collected list of events.
Sourcepub fn to_block_events(&self, params: &ClapParamMap) -> Vec<BlockEvent<'_>>
pub fn to_block_events(&self, params: &ClapParamMap) -> Vec<BlockEvent<'_>>
Translates every buffered event into an audio-graph BlockEvent,
resolving parameter ids through params.
Trait Implementations§
Source§impl Clone for ClapEventBuffer
impl Clone for ClapEventBuffer
Source§fn clone(&self) -> ClapEventBuffer
fn clone(&self) -> ClapEventBuffer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClapEventBuffer
impl Debug for ClapEventBuffer
Source§impl Default for ClapEventBuffer
impl Default for ClapEventBuffer
Source§fn default() -> ClapEventBuffer
fn default() -> ClapEventBuffer
Returns the “default value” for a type. Read more
Source§impl PartialEq for ClapEventBuffer
impl PartialEq for ClapEventBuffer
Source§fn eq(&self, other: &ClapEventBuffer) -> bool
fn eq(&self, other: &ClapEventBuffer) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClapEventBuffer
Auto Trait Implementations§
impl Freeze for ClapEventBuffer
impl RefUnwindSafe for ClapEventBuffer
impl Send for ClapEventBuffer
impl Sync for ClapEventBuffer
impl Unpin for ClapEventBuffer
impl UnsafeUnpin for ClapEventBuffer
impl UnwindSafe for ClapEventBuffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more