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