objc2-sound-analysis 0.3.2

Bindings to the SoundAnalysis framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/soundanalysis/snerrordomain?language=objc)
    pub static SNErrorDomain: Option<&'static NSString>;
}

/// [Apple's documentation](https://developer.apple.com/documentation/soundanalysis/snerrorcode?language=objc)
// NS_ERROR_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct SNErrorCode(pub NSInteger);
impl SNErrorCode {
    #[doc(alias = "SNErrorCodeUnknownError")]
    pub const UnknownError: Self = Self(1);
    #[doc(alias = "SNErrorCodeOperationFailed")]
    pub const OperationFailed: Self = Self(2);
    #[doc(alias = "SNErrorCodeInvalidFormat")]
    pub const InvalidFormat: Self = Self(3);
    #[doc(alias = "SNErrorCodeInvalidModel")]
    pub const InvalidModel: Self = Self(4);
    #[doc(alias = "SNErrorCodeInvalidFile")]
    pub const InvalidFile: Self = Self(5);
}

unsafe impl Encode for SNErrorCode {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for SNErrorCode {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}