Struct reaper_medium::BorrowedMidiEventList
source · [−]#[repr(transparent)]pub struct BorrowedMidiEventList(_);
Expand description
A list of MIDI events borrowed from REAPER.
Implementations
sourceimpl BorrowedMidiEventList
impl BorrowedMidiEventList
sourcepub fn as_ptr(&self) -> NonNull<MIDI_eventlist>
pub fn as_ptr(&self) -> NonNull<MIDI_eventlist>
Returns the raw pointer.
sourcepub fn enum_items(&self, bpos: u32) -> Option<EnumItemsResult<&MidiEvent>>
pub fn enum_items(&self, bpos: u32) -> Option<EnumItemsResult<&MidiEvent>>
Returns the MIDI event at the given byte index along with the byte index of the next event.
sourcepub fn enum_items_mut(
&mut self,
bpos: u32
) -> Option<EnumItemsResult<&mut MidiEvent>>
pub fn enum_items_mut(
&mut self,
bpos: u32
) -> Option<EnumItemsResult<&mut MidiEvent>>
Returns the MIDI event at the given byte index along with the byte index of the next event.
pub fn iter(&self) -> EnumItems<&BorrowedMidiEventList>ⓘNotable traits for EnumItems<&'a BorrowedMidiEventList>impl<'a> Iterator for EnumItems<&'a BorrowedMidiEventList> type Item = &'a MidiEvent;impl<'a> Iterator for EnumItems<&'a mut BorrowedMidiEventList> type Item = &'a mut MidiEvent;
pub fn iter_mut(&mut self) -> EnumItems<&mut BorrowedMidiEventList>ⓘNotable traits for EnumItems<&'a BorrowedMidiEventList>impl<'a> Iterator for EnumItems<&'a BorrowedMidiEventList> type Item = &'a MidiEvent;impl<'a> Iterator for EnumItems<&'a mut BorrowedMidiEventList> type Item = &'a mut MidiEvent;
sourcepub fn delete_item(&mut self, bpos: u32)
pub fn delete_item(&mut self, bpos: u32)
Deletes an item from this list of MIDI events.
bpos
is the byte index (not the index of the item!).
Trait Implementations
sourceimpl Debug for BorrowedMidiEventList
impl Debug for BorrowedMidiEventList
sourceimpl Hash for BorrowedMidiEventList
impl Hash for BorrowedMidiEventList
sourceimpl<'a> IntoIterator for &'a BorrowedMidiEventList
impl<'a> IntoIterator for &'a BorrowedMidiEventList
sourceimpl<'a> IntoIterator for &'a mut BorrowedMidiEventList
impl<'a> IntoIterator for &'a mut BorrowedMidiEventList
sourceimpl PartialEq<BorrowedMidiEventList> for BorrowedMidiEventList
impl PartialEq<BorrowedMidiEventList> for BorrowedMidiEventList
sourcefn eq(&self, other: &BorrowedMidiEventList) -> bool
fn eq(&self, other: &BorrowedMidiEventList) -> bool
sourceimpl RefCast for BorrowedMidiEventList
impl RefCast for BorrowedMidiEventList
type From = MIDI_eventlist
fn ref_cast(_from: &Self::From) -> &Self
fn ref_cast_mut(_from: &mut Self::From) -> &mut Self
impl Eq for BorrowedMidiEventList
impl StructuralEq for BorrowedMidiEventList
impl StructuralPartialEq for BorrowedMidiEventList
Auto Trait Implementations
impl RefUnwindSafe for BorrowedMidiEventList
impl !Send for BorrowedMidiEventList
impl !Sync for BorrowedMidiEventList
impl Unpin for BorrowedMidiEventList
impl UnwindSafe for BorrowedMidiEventList
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read moresourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more