maxcountryman_web_sys/features/
gen_Comment.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = CharacterData , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = Comment , typescript_type = "Comment")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `Comment` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Comment)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `Comment`*"]
13 pub type Comment;
14 #[wasm_bindgen(catch, constructor, js_class = "Comment")]
15 #[doc = "The `new Comment(..)` constructor, creating a new instance of `Comment`."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Comment/Comment)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `Comment`*"]
20 pub fn new() -> Result<Comment, JsValue>;
21 #[wasm_bindgen(catch, constructor, js_class = "Comment")]
22 #[doc = "The `new Comment(..)` constructor, creating a new instance of `Comment`."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Comment/Comment)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `Comment`*"]
27 pub fn new_with_data(data: &str) -> Result<Comment, JsValue>;
28}