script::dom::bindings::codegen::Bindings::TestBindingBinding

Type Alias callbackWithOnlyOneOptionalArg

Source
pub(crate) type callbackWithOnlyOneOptionalArg = callbackWithOnlyOneOptionalArg<DomTypeHolder>;

Aliased Type§

struct callbackWithOnlyOneOptionalArg {
    pub(crate) parent: CallbackFunction<DomTypeHolder>,
}

Fields§

§parent: CallbackFunction<DomTypeHolder>

Implementations

Source§

impl<D: DomTypes> callbackWithOnlyOneOptionalArg<D>

Source

pub(crate) unsafe fn new( aCx: SafeJSContext, aCallback: *mut JSObject, ) -> Rc<callbackWithOnlyOneOptionalArg<D>>

Source

pub fn Call_<T: ThisReflector>( &self, thisObj: &T, reason: Option<HandleValue<'_>>, aExceptionHandling: ExceptionHandling, can_gc: CanGc, ) -> Fallible<Rc<D::Promise>>

Source

pub fn Call__( &self, reason: Option<HandleValue<'_>>, aExceptionHandling: ExceptionHandling, can_gc: CanGc, ) -> Fallible<Rc<D::Promise>>

Source

unsafe fn Call( &self, cx: SafeJSContext, aThisObj: HandleValue<'_>, reason: Option<HandleValue<'_>>, can_gc: CanGc, ) -> Fallible<Rc<D::Promise>>

Trait Implementations

Source§

impl<D: DomTypes> CallbackContainer<D> for callbackWithOnlyOneOptionalArg<D>

Source§

unsafe fn new( cx: SafeJSContext, callback: *mut JSObject, ) -> Rc<callbackWithOnlyOneOptionalArg<D>>

Create a new CallbackContainer object for the given JSObject.
Source§

fn callback_holder(&self) -> &CallbackObject<D>

Returns the underlying CallbackObject.
Source§

fn callback(&self) -> *mut JSObject

Returns the underlying JSObject.
Source§

fn incumbent(&self) -> Option<&D::GlobalScope>

Returns the “callback context”, that is, the global to use as incumbent global when calling the callback.
Source§

impl<D: PartialEq + DomTypes> PartialEq for callbackWithOnlyOneOptionalArg<D>

Source§

fn eq(&self, other: &callbackWithOnlyOneOptionalArg<D>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<D: DomTypes> ToJSValConvertible for callbackWithOnlyOneOptionalArg<D>

Source§

unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)

Convert self to a JSVal. JSAPI failure causes a panic.
Source§

impl<D> Traceable for callbackWithOnlyOneOptionalArg<D>
where D: JSTraceable + DomTypes,

Source§

unsafe fn trace(&self, tracer: *mut JSTracer)

Trace self.
Source§

impl<D: DomTypes> StructuralPartialEq for callbackWithOnlyOneOptionalArg<D>