Struct script::dom::pagetransitionevent::PageTransitionEvent
source · Fields
event: Event
persisted: Cell<bool>
Implementations
sourceimpl PageTransitionEvent
impl PageTransitionEvent
fn __assert_parent_type(&self)
sourceimpl PageTransitionEvent
impl PageTransitionEvent
fn new_inherited() -> PageTransitionEvent
pub fn new_uninitialized(window: &Window) -> Root<Dom<PageTransitionEvent>>
pub fn new(
window: &Window,
type_: Atom,
bubbles: bool,
cancelable: bool,
persisted: bool
) -> Root<Dom<PageTransitionEvent>>
pub fn Constructor(
window: &Window,
type_: DOMString,
init: &PageTransitionEventInit
) -> Result<Root<Dom<PageTransitionEvent>>, Error>
Trait Implementations
sourceimpl Castable for PageTransitionEvent
impl Castable for PageTransitionEvent
sourcefn is<T>(&self) -> boolwhere
T: DerivedFrom<Self>,
fn is<T>(&self) -> boolwhere
T: DerivedFrom<Self>,
Check whether a DOM object implements one of its deriving interfaces.
sourcefn upcast<T>(&self) -> &Twhere
T: Castable,
Self: DerivedFrom<T>,
fn upcast<T>(&self) -> &Twhere
T: Castable,
Self: DerivedFrom<T>,
Cast a DOM object upwards to one of the interfaces it derives from.
sourcefn downcast<T>(&self) -> Option<&T>where
T: DerivedFrom<Self>,
fn downcast<T>(&self) -> Option<&T>where
T: DerivedFrom<Self>,
Cast a DOM object downwards to one of the interfaces it might implement.
sourceimpl DomObject for PageTransitionEvent
impl DomObject for PageTransitionEvent
sourceimpl DomObjectWrap for PageTransitionEvent
impl DomObjectWrap for PageTransitionEvent
sourceconst WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::PageTransitionEventBinding::PageTransitionEventBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::pagetransitionevent::PageTransitionEvent>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::pagetransitionevent::PageTransitionEvent>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::PageTransitionEventBinding::PageTransitionEventBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::pagetransitionevent::PageTransitionEvent>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::pagetransitionevent::PageTransitionEvent>>}
Function pointer to the general wrap function type
sourceimpl HasParent for PageTransitionEvent
impl HasParent for PageTransitionEvent
sourceimpl IDLInterface for PageTransitionEvent
impl IDLInterface for PageTransitionEvent
sourceimpl JSTraceable for PageTransitionEvent
impl JSTraceable for PageTransitionEvent
sourceimpl MallocSizeOf for PageTransitionEvent
impl MallocSizeOf for PageTransitionEvent
sourcefn 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. Read more
sourceimpl MutDomObject for PageTransitionEvent
impl MutDomObject for PageTransitionEvent
sourceunsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
Initializes the Reflector
sourceimpl PartialEq<PageTransitionEvent> for PageTransitionEvent
impl PartialEq<PageTransitionEvent> for PageTransitionEvent
sourcefn eq(&self, other: &PageTransitionEvent) -> bool
fn eq(&self, other: &PageTransitionEvent) -> bool
sourceimpl ToJSValConvertible for PageTransitionEvent
impl ToJSValConvertible for PageTransitionEvent
sourceunsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
Convert
self
to a JSVal
. JSAPI failure causes a panic.impl DerivedFrom<Event> for PageTransitionEvent
Auto Trait Implementations
impl !RefUnwindSafe for PageTransitionEvent
impl !Send for PageTransitionEvent
impl !Sync for PageTransitionEvent
impl Unpin for PageTransitionEvent
impl !UnwindSafe for PageTransitionEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
sourcefn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
sourceimpl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
sourcefn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert