Struct rimd::AbsoluteEvent
[−]
[src]
pub struct AbsoluteEvent { /* fields omitted */ }
An AbsoluteEvent is an event that has an absolute time This is useful for apps that want to store events internally with absolute times and then quickly build an SMF file for saving etc...
Methods
impl AbsoluteEvent
[src]
fn new_midi(time: u64, midi: MidiMessage) -> AbsoluteEvent
fn new_meta(time: u64, meta: MetaEvent) -> AbsoluteEvent
fn is_midi(&self) -> bool
Return true if the event inside this AbsoluteEvent is a midi event, false if it's a meta event
fn is_meta(&self) -> bool
Return true if the event inside this AbsoluteEvent is a meta event, false if it's a midi event
fn get_event(&self) -> &Event
fn get_time(&self) -> u64
Trait Implementations
impl Eq for AbsoluteEvent
[src]
impl PartialEq for AbsoluteEvent
[src]
fn eq(&self, other: &AbsoluteEvent) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &AbsoluteEvent) -> bool
This method tests for !=
.
impl Ord for AbsoluteEvent
[src]
fn cmp(&self, other: &AbsoluteEvent) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl PartialOrd for AbsoluteEvent
[src]
fn partial_cmp(&self, other: &AbsoluteEvent) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more