Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/coremidi/src/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 774 B image not shown  

Quelle  entity.rs

  Sprache: Rust
 

use coremidi_sys::MIDIObjectRef;
use std::ops::Deref;

use crate::object::Object;

/// A [MIDI object](https://developer.apple.com/documentation/coremidi/midientityref).
///
/// An entity that a device owns and that contains endpoints.
///
#[derive(Debug, PartialEq)]
pub struct Entity {
    pub(crate) object: Object,
}

impl Entity {
    pub(cratefn new(object_ref: MIDIObjectRef) -> Self {
        Self {
            object: Object(object_ref),
        }
    }
}

impl Clone for Entity {
    fn clone(&self) -> Self {
        Self::new(self.object.0)
    }
}

impl AsRef<Object> for Entity {
    fn as_ref(&self) -> &Object {
        &self.object
    }
}

impl Deref for Entity {
    type Target = Object;

    fn deref(&self) -> &Object {
        &self.object
    }
}

Messung V0.5 in Prozent
C=91 H=100 G=95

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.