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
//! 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 DOMRangeException: Option<&'static NSString>;
}

#[deprecated]
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct DOMRangeExceptionCode(pub c_uint);
impl DOMRangeExceptionCode {
    #[deprecated]
    pub const DOM_BAD_BOUNDARYPOINTS_ERR: Self = Self(1);
    #[deprecated]
    pub const DOM_INVALID_NODE_TYPE_ERR: Self = Self(2);
}

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

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