Struct script::dom::bindings::refcounted::TrustedReference
source · struct TrustedReference(*const c_void);
Expand description
A pointer to a Rust DOM object that needs to be destroyed.
Tuple Fields§
§0: *const c_void
Implementations§
source§impl TrustedReference
impl TrustedReference
sourceunsafe fn new(ptr: *const c_void) -> TrustedReference
unsafe fn new(ptr: *const c_void) -> TrustedReference
Creates a new TrustedReference from a pointer to a value that impements DOMObject. This is not enforced by the type system to reduce duplicated generic code, which is acceptable since this method is internal to this module.
Trait Implementations§
impl Send for TrustedReference
Auto Trait Implementations§
impl RefUnwindSafe for TrustedReference
impl !Sync for TrustedReference
impl Unpin for TrustedReference
impl UnwindSafe for TrustedReference
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