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