Skip to main content

web_sys/features/
gen_CssRuleList.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "::js_sys::Object",
9        js_name = "CSSRuleList",
10        typescript_type = "CSSRuleList"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `CssRuleList` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRuleList)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `CssRuleList`*"]
18    pub type CssRuleList;
19    #[wasm_bindgen(method, getter, js_class = "CSSRuleList", js_name = "length")]
20    #[doc = "Getter for the `length` field of this object."]
21    #[doc = ""]
22    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRuleList/length)"]
23    #[doc = ""]
24    #[doc = "*This API requires the following crate features to be activated: `CssRuleList`*"]
25    pub fn length(this: &CssRuleList) -> u32;
26    #[cfg(feature = "CssRule")]
27    #[wasm_bindgen(method, js_class = "CSSRuleList")]
28    #[doc = "The `item()` method."]
29    #[doc = ""]
30    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRuleList/item)"]
31    #[doc = ""]
32    #[doc = "*This API requires the following crate features to be activated: `CssRule`, `CssRuleList`*"]
33    pub fn item(this: &CssRuleList, index: u32) -> Option<CssRule>;
34    #[cfg(feature = "CssRule")]
35    #[wasm_bindgen(method, js_class = "CSSRuleList", indexing_getter)]
36    #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
37    #[doc = ""]
38    #[doc = ""]
39    #[doc = "*This API requires the following crate features to be activated: `CssRule`, `CssRuleList`*"]
40    pub fn get(this: &CssRuleList, index: u32) -> Option<CssRule>;
41}