From 3ee01377a4f14932bfcfcfd695ea297fbf3f0f12 Mon Sep 17 00:00:00 2001 From: Aske Simon Christensen Date: Sat, 24 Oct 2020 13:31:55 +0200 Subject: [PATCH] Introduce zero-valued EventType to enable zero-initialization of Event --- src/api.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api.rs b/src/api.rs index 65a39025..427bfe10 100644 --- a/src/api.rs +++ b/src/api.rs @@ -461,6 +461,9 @@ impl Events { #[repr(i32)] #[derive(Copy, Clone, Debug)] pub enum EventType { + /// Value used for uninitialized placeholder events. + _Placeholder = 0, + /// Midi event. See `api::MidiEvent`. Midi = 1,