pub struct Reflector {
object: Heap<*mut JSObject>,
}
Expand description
A struct to store a reference to the reflector of a DOM object.
Fields§
§object: Heap<*mut JSObject>
Implementations§
source§impl Reflector
impl Reflector
sourcepub fn get_jsobject(&self) -> HandleObject<'_>
pub fn get_jsobject(&self) -> HandleObject<'_>
Get the reflector.
sourcepub unsafe fn set_jsobject(&self, object: *mut JSObject)
pub unsafe fn set_jsobject(&self, object: *mut JSObject)
Initialize the reflector. (May be called only once.)
Trait Implementations§
source§impl MallocSizeOf for Reflector
impl MallocSizeOf for Reflector
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 Reflector
impl MutDomObject for Reflector
source§unsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
Initializes the Reflector
source§impl PartialEq<Reflector> for Reflector
impl PartialEq<Reflector> for Reflector
source§impl ToJSValConvertible for Reflector
impl ToJSValConvertible for Reflector
Auto Trait Implementations§
impl !RefUnwindSafe for Reflector
impl !Send for Reflector
impl !Sync for Reflector
impl Unpin for Reflector
impl UnwindSafe for Reflector
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