script/home/runner/work/servo/servo/target/debug/build/script-0d808a8fdcf4bfaf/out/ConcreteBindings/
ReadableStreamBYOBReaderBinding.rs

1/* THIS FILE IS AUTOGENERATED - DO NOT EDIT */
2
3#![allow(non_camel_case_types,non_upper_case_globals,unsafe_op_in_unsafe_fn,unused_imports,unused_variables,unused_assignments,unused_mut,clippy::approx_constant,clippy::enum_variant_names,clippy::let_unit_value,clippy::needless_return,clippy::too_many_arguments,clippy::unnecessary_cast,clippy::upper_case_acronyms)]
4
5use crate::dom::bindings::import::module::*;
6use crate::dom::types::*;
7
8pub(crate) type ReadableStreamBYOBReaderReadOptions = crate::dom::bindings::codegen::GenericBindings::ReadableStreamBYOBReaderBinding::ReadableStreamBYOBReaderReadOptions;
9
10pub(crate) use crate::dom::bindings::codegen::GenericBindings::ReadableStreamBYOBReaderBinding as GenericBindings;
11
12pub(crate) use crate::dom::bindings::codegen::GenericBindings::ReadableStreamBYOBReaderBinding::ReadableStreamBYOBReader_Binding as ReadableStreamBYOBReader_Binding;
13
14
15impl ReadableStreamBYOBReader {
16    fn __assert_parent_type(&self) {
17        use crate::dom::bindings::inheritance::HasParent;
18        // If this type assertion fails, make sure the first field of your
19        // DOM struct is of the correct type -- it must be the parent class.
20        let _: &Reflector = self.as_parent();
21    }
22}
23
24
25
26impl IDLInterface for ReadableStreamBYOBReader {
27    #[inline]
28    fn derives(class: &'static DOMClass) -> bool {
29        ptr::eq(class, unsafe { &crate::dom::bindings::codegen::GenericBindings::ReadableStreamBYOBReaderBinding::ReadableStreamBYOBReader_Binding::Class.get().dom_class })
30    }
31}
32
33
34
35impl DomObjectWrap<crate::DomTypeHolder> for ReadableStreamBYOBReader {
36    const WRAP: unsafe fn(
37        SafeJSContext,
38        &GlobalScope,
39        Option<HandleObject>,
40        Box<Self>,
41        CanGc,
42    ) -> Root<Dom<Self>> = crate::dom::bindings::codegen::GenericBindings::ReadableStreamBYOBReaderBinding::ReadableStreamBYOBReader_Binding::Wrap::<crate::DomTypeHolder>;
43}
44
45
46
47impl Drop for ReadableStreamBYOBReader {
48    fn drop(&mut self) { }
49}
50
51
52pub(crate) use self::ReadableStreamBYOBReader_Binding::ReadableStreamBYOBReaderMethods as ReadableStreamBYOBReaderMethods;
53
54pub(crate) use self::ReadableStreamBYOBReader_Binding::Wrap;
55