#[repr(C)]pub struct Comment {
characterdata: CharacterData,
}
Expand description
An HTML comment.
Fields§
§characterdata: CharacterData
Implementations§
source§impl Comment
impl Comment
fn __assert_parent_type(&self)
source§impl Comment
impl Comment
fn new_inherited(text: DOMString, document: &Document) -> Comment
pub fn new(
text: DOMString,
document: &Document,
proto: Option<HandleObject<'_>>
) -> Root<Dom<Comment>>
pub fn Constructor(
window: &Window,
proto: Option<HandleObject<'_>>,
data: DOMString
) -> Result<Root<Dom<Comment>>, Error>
Trait Implementations§
source§impl Castable for Comment
impl Castable for Comment
source§impl DomObjectWrap for Comment
impl DomObjectWrap for Comment
source§const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::CommentBinding::CommentBinding::Wrap as for<'a, 'b> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::comment::Comment>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::comment::Comment>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::CommentBinding::CommentBinding::Wrap as for<'a, 'b> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::comment::Comment>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::comment::Comment>>}
Function pointer to the general wrap function type
source§impl HasParent for Comment
impl HasParent for Comment
source§fn as_parent(&self) -> &CharacterData
fn as_parent(&self) -> &CharacterData
This is used in a type assertion to ensure that the source and webidls agree as to what the parent type is
type Parent = CharacterData
source§impl IDLInterface for Comment
impl IDLInterface for Comment
source§impl MallocSizeOf for Comment
impl MallocSizeOf for Comment
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl MutDomObject for Comment
impl MutDomObject for Comment
source§unsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
Initializes the Reflector
source§impl PartialEq<Comment> for Comment
impl PartialEq<Comment> for Comment
source§impl ToJSValConvertible for Comment
impl ToJSValConvertible for Comment
impl DerivedFrom<CharacterData> for Comment
impl DerivedFrom<EventTarget> for Comment
impl DerivedFrom<Node> for Comment
Auto Trait Implementations§
impl !RefUnwindSafe for Comment
impl !Send for Comment
impl !Sync for Comment
impl Unpin for Comment
impl !UnwindSafe for Comment
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert