1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! 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" {
    pub static DOMException: Option<&'static NSString>;
}

#[deprecated]
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct DOMExceptionCode(pub c_uint);
impl DOMExceptionCode {
    #[deprecated]
    pub const DOM_INDEX_SIZE_ERR: Self = Self(1);
    #[deprecated]
    pub const DOM_DOMSTRING_SIZE_ERR: Self = Self(2);
    #[deprecated]
    pub const DOM_HIERARCHY_REQUEST_ERR: Self = Self(3);
    #[deprecated]
    pub const DOM_WRONG_DOCUMENT_ERR: Self = Self(4);
    #[deprecated]
    pub const DOM_INVALID_CHARACTER_ERR: Self = Self(5);
    #[deprecated]
    pub const DOM_NO_DATA_ALLOWED_ERR: Self = Self(6);
    #[deprecated]
    pub const DOM_NO_MODIFICATION_ALLOWED_ERR: Self = Self(7);
    #[deprecated]
    pub const DOM_NOT_FOUND_ERR: Self = Self(8);
    #[deprecated]
    pub const DOM_NOT_SUPPORTED_ERR: Self = Self(9);
    #[deprecated]
    pub const DOM_INUSE_ATTRIBUTE_ERR: Self = Self(10);
    #[deprecated]
    pub const DOM_INVALID_STATE_ERR: Self = Self(11);
    #[deprecated]
    pub const DOM_SYNTAX_ERR: Self = Self(12);
    #[deprecated]
    pub const DOM_INVALID_MODIFICATION_ERR: Self = Self(13);
    #[deprecated]
    pub const DOM_NAMESPACE_ERR: Self = Self(14);
    #[deprecated]
    pub const DOM_INVALID_ACCESS_ERR: Self = Self(15);
}

unsafe impl Encode for DOMExceptionCode {
    const ENCODING: Encoding = c_uint::ENCODING;
}

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