objc2_web_kit/generated/
DOMRangeException.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern "C" {
10    /// [Apple's documentation](https://developer.apple.com/documentation/webkit/domrangeexception?language=objc)
11    #[deprecated]
12    pub static DOMRangeException: Option<&'static NSString>;
13}
14
15/// [Apple's documentation](https://developer.apple.com/documentation/webkit/domrangeexceptioncode?language=objc)
16#[deprecated]
17#[repr(transparent)]
18#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
19pub struct DOMRangeExceptionCode(pub c_uint);
20impl DOMRangeExceptionCode {
21    #[doc(alias = "DOM_BAD_BOUNDARYPOINTS_ERR")]
22    #[deprecated]
23    pub const BAD_BOUNDARYPOINTS_ERR: Self = Self(1);
24    #[doc(alias = "DOM_INVALID_NODE_TYPE_ERR")]
25    #[deprecated]
26    pub const INVALID_NODE_TYPE_ERR: Self = Self(2);
27}
28
29unsafe impl Encode for DOMRangeExceptionCode {
30    const ENCODING: Encoding = c_uint::ENCODING;
31}
32
33unsafe impl RefEncode for DOMRangeExceptionCode {
34    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
35}