Debian Codegraph @

third_party/rust/coremidi/src/devices.rs

raw
1 use std::ops::Deref;
2
3 use crate::object::Object;
4
5 /// A [MIDI object](https://developer.apple.com/reference/coremidi/midideviceref).
6 ///
7 /// A MIDI device or external device, containing entities.
8 ///
9 #[derive(Debug, PartialEq)]
10 pub struct Device {
11 pub(crate) object: Object,
12 }
13
14 impl Deref for Device {
15 type Target = Object;
16
17 fn deref(&self) -> &Object {
18 &self.object
19 }
20 }