Struct script::dom::xrlayerevent::XRLayerEvent
source · #[repr(C)]pub struct XRLayerEvent {
event: Event,
layer: Dom<XRLayer>,
}
Fields§
§event: Event
§layer: Dom<XRLayer>
Implementations§
source§impl XRLayerEvent
impl XRLayerEvent
fn __assert_parent_type(&self)
source§impl XRLayerEvent
impl XRLayerEvent
pub fn new_inherited(layer: &XRLayer) -> XRLayerEvent
pub fn new(window: &Window, layer: &XRLayer) -> Root<Dom<XRLayerEvent>>
pub fn Constructor(
window: &Window,
type_: DOMString,
init: &XRLayerEventInit
) -> Root<Dom<XRLayerEvent>>
Trait Implementations§
source§impl Castable for XRLayerEvent
impl Castable for XRLayerEvent
source§impl DomObject for XRLayerEvent
impl DomObject for XRLayerEvent
source§impl DomObjectWrap for XRLayerEvent
impl DomObjectWrap for XRLayerEvent
source§const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::XRLayerEventBinding::XRLayerEventBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::xrlayerevent::XRLayerEvent>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::xrlayerevent::XRLayerEvent>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::XRLayerEventBinding::XRLayerEventBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::xrlayerevent::XRLayerEvent>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::xrlayerevent::XRLayerEvent>>}
Function pointer to the general wrap function type
source§impl HasParent for XRLayerEvent
impl HasParent for XRLayerEvent
source§impl IDLInterface for XRLayerEvent
impl IDLInterface for XRLayerEvent
source§impl JSTraceable for XRLayerEvent
impl JSTraceable for XRLayerEvent
source§impl MallocSizeOf for XRLayerEvent
impl MallocSizeOf for XRLayerEvent
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 XRLayerEvent
impl MutDomObject for XRLayerEvent
source§unsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
Initializes the Reflector
source§impl PartialEq<XRLayerEvent> for XRLayerEvent
impl PartialEq<XRLayerEvent> for XRLayerEvent
source§fn eq(&self, other: &XRLayerEvent) -> bool
fn eq(&self, other: &XRLayerEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToJSValConvertible for XRLayerEvent
impl ToJSValConvertible for XRLayerEvent
source§impl XRLayerEventMethods for XRLayerEvent
impl XRLayerEventMethods for XRLayerEvent
impl DerivedFrom<Event> for XRLayerEvent
Auto Trait Implementations§
impl !RefUnwindSafe for XRLayerEvent
impl !Send for XRLayerEvent
impl !Sync for XRLayerEvent
impl Unpin for XRLayerEvent
impl !UnwindSafe for XRLayerEvent
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> 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