icrate 0.1.2

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::Foundation::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Foundation_NSInflectionRule")]
    pub struct NSInflectionRule;

    #[cfg(feature = "Foundation_NSInflectionRule")]
    unsafe impl ClassType for NSInflectionRule {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "Foundation_NSInflectionRule")]
unsafe impl NSCoding for NSInflectionRule {}

#[cfg(feature = "Foundation_NSInflectionRule")]
unsafe impl NSCopying for NSInflectionRule {}

#[cfg(feature = "Foundation_NSInflectionRule")]
unsafe impl NSObjectProtocol for NSInflectionRule {}

#[cfg(feature = "Foundation_NSInflectionRule")]
unsafe impl NSSecureCoding for NSInflectionRule {}

extern_methods!(
    #[cfg(feature = "Foundation_NSInflectionRule")]
    unsafe impl NSInflectionRule {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics Other automaticRule)]
        pub unsafe fn automaticRule() -> Id<NSInflectionRule>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "Foundation_NSInflectionRule")]
    unsafe impl NSInflectionRule {
        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Foundation_NSInflectionRuleExplicit")]
    pub struct NSInflectionRuleExplicit;

    #[cfg(feature = "Foundation_NSInflectionRuleExplicit")]
    unsafe impl ClassType for NSInflectionRuleExplicit {
        #[inherits(NSObject)]
        type Super = NSInflectionRule;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "Foundation_NSInflectionRuleExplicit")]
unsafe impl NSCoding for NSInflectionRuleExplicit {}

#[cfg(feature = "Foundation_NSInflectionRuleExplicit")]
unsafe impl NSCopying for NSInflectionRuleExplicit {}

#[cfg(feature = "Foundation_NSInflectionRuleExplicit")]
unsafe impl NSObjectProtocol for NSInflectionRuleExplicit {}

#[cfg(feature = "Foundation_NSInflectionRuleExplicit")]
unsafe impl NSSecureCoding for NSInflectionRuleExplicit {}

extern_methods!(
    #[cfg(feature = "Foundation_NSInflectionRuleExplicit")]
    unsafe impl NSInflectionRuleExplicit {
        #[cfg(feature = "Foundation_NSMorphology")]
        #[method_id(@__retain_semantics Init initWithMorphology:)]
        pub unsafe fn initWithMorphology(
            this: Allocated<Self>,
            morphology: &NSMorphology,
        ) -> Id<Self>;

        #[cfg(feature = "Foundation_NSMorphology")]
        #[method_id(@__retain_semantics Other morphology)]
        pub unsafe fn morphology(&self) -> Id<NSMorphology>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSInflectionRule`
    #[cfg(feature = "Foundation_NSInflectionRuleExplicit")]
    unsafe impl NSInflectionRuleExplicit {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "Foundation_NSInflectionRuleExplicit")]
    unsafe impl NSInflectionRuleExplicit {
        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);

extern_methods!(
    /// NSInflectionAvailability
    #[cfg(feature = "Foundation_NSInflectionRule")]
    unsafe impl NSInflectionRule {
        #[cfg(feature = "Foundation_NSString")]
        #[method(canInflectLanguage:)]
        pub unsafe fn canInflectLanguage(language: &NSString) -> bool;

        #[method(canInflectPreferredLocalization)]
        pub unsafe fn canInflectPreferredLocalization() -> bool;
    }
);