#[repr(C)]
pub struct TestBinding { reflector_: Reflector, url: MutableWeakRef<URL>, }

Fields§

§reflector_: Reflector§url: MutableWeakRef<URL>

Implementations§

source§

impl TestBinding

source§

impl TestBinding

source

pub fn type_id(&self) -> &'static TestBindingTypeId

source§

impl TestBinding

source

fn new_inherited() -> TestBinding

source

pub fn new(global: &GlobalScope) -> Root<Dom<TestBinding>>

source

pub fn Constructor(
    global: &GlobalScope
) -> Result<Root<Dom<TestBinding>>, Error>

source

pub fn Constructor_(
    global: &GlobalScope,
    nums: Vec<f64>
) -> Result<Root<Dom<TestBinding>>, Error>

source

pub fn Constructor__(
    global: &GlobalScope,
    num: f64
) -> Result<Root<Dom<TestBinding>>, Error>

source§

impl TestBinding

source§

impl TestBinding

Trait Implementations§

source§

impl Castable for TestBinding

source§

fn is<T>(&self) -> boolwhere
    T: DerivedFrom<Self>,

Check whether a DOM object implements one of its deriving interfaces.
source§

fn upcast<T>(&self) -> &Twhere
    T: Castable,
    Self: DerivedFrom<T>,

Cast a DOM object upwards to one of the interfaces it derives from.
source§

fn downcast<T>(&self) -> Option<&T>where
    T: DerivedFrom<Self>,

Cast a DOM object downwards to one of the interfaces it might implement.
source§

impl DomObject for TestBinding

source§

fn reflector(&self) -> &Reflector

Returns the receiver’s reflector.
source§

fn global(&self) -> Root<Dom<GlobalScope>>where
    Self: Sized,

Returns the global scope of the realm that the DomObject was created in.
source§

impl DomObjectWrap for TestBinding

source§

const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::TestBindingBinding::TestBindingBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::testbinding::TestBinding>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::testbinding::TestBinding>>}

Function pointer to the general wrap function type
source§

impl HasParent for TestBinding

source§

fn as_parent(&self) -> &Reflector

This is used in a type assertion to ensure that the source and webidls agree as to what the parent type is

§

type Parent = Reflector

source§

impl IDLInterface for TestBinding

source§

fn derives(class: &'static DOMClass) -> bool

Returns whether the given DOM class derives that interface.
source§

impl JSTraceable for TestBinding

source§

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

Trace self.
source§

impl MallocSizeOf for TestBinding

source§

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 TestBinding

source§

unsafe fn init_reflector(&self, obj: *mut JSObject)

Initializes the Reflector
source§

impl PartialEq<TestBinding> for TestBinding

source§

fn eq(&self, other: &TestBinding) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TestBindingMethods for TestBinding

source§

fn BooleanAttribute(&self) -> bool

source§

fn SetBooleanAttribute(&self, _: bool)

source§

fn ByteAttribute(&self) -> i8

source§

fn SetByteAttribute(&self, _: i8)

source§

fn OctetAttribute(&self) -> u8

source§

fn SetOctetAttribute(&self, _: u8)

source§

fn ShortAttribute(&self) -> i16

source§

fn SetShortAttribute(&self, _: i16)

source§

fn UnsignedShortAttribute(&self) -> u16

source§

fn SetUnsignedShortAttribute(&self, _: u16)

source§

fn LongAttribute(&self) -> i32

source§

fn SetLongAttribute(&self, _: i32)

source§

fn UnsignedLongAttribute(&self) -> u32

source§

fn SetUnsignedLongAttribute(&self, _: u32)

source§

fn LongLongAttribute(&self) -> i64

source§

fn SetLongLongAttribute(&self, _: i64)

source§

fn UnsignedLongLongAttribute(&self) -> u64

source§

fn SetUnsignedLongLongAttribute(&self, _: u64)

source§

fn UnrestrictedFloatAttribute(&self) -> f32

source§

fn SetUnrestrictedFloatAttribute(&self, _: f32)

source§

fn FloatAttribute(&self) -> Finite<f32>

source§

fn SetFloatAttribute(&self, _: Finite<f32>)

source§

fn UnrestrictedDoubleAttribute(&self) -> f64

source§

fn SetUnrestrictedDoubleAttribute(&self, _: f64)

source§

fn DoubleAttribute(&self) -> Finite<f64>

source§

fn SetDoubleAttribute(&self, _: Finite<f64>)

source§

fn StringAttribute(&self) -> DOMString

source§

fn SetStringAttribute(&self, _: DOMString)

source§

fn UsvstringAttribute(&self) -> USVString

source§

fn SetUsvstringAttribute(&self, _: USVString)

source§

fn ByteStringAttribute(&self) -> ByteString

source§

fn SetByteStringAttribute(&self, _: ByteString)

source§

fn EnumAttribute(&self) -> TestEnum

source§

fn SetEnumAttribute(&self, _: TestEnum)

source§

fn InterfaceAttribute(&self) -> Root<Dom<Blob>>

source§

fn SetInterfaceAttribute(&self, _: &Blob)

source§

fn UnionAttribute(&self) -> HTMLElementOrLong

source§

fn SetUnionAttribute(&self, _: HTMLElementOrLong)

source§

fn Union2Attribute(&self) -> EventOrString

source§

fn SetUnion2Attribute(&self, _: EventOrString)

source§

fn Union3Attribute(&self) -> EventOrUSVString

source§

fn SetUnion3Attribute(&self, _: EventOrUSVString)

source§

fn Union4Attribute(&self) -> StringOrUnsignedLong

source§

fn SetUnion4Attribute(&self, _: StringOrUnsignedLong)

source§

fn Union5Attribute(&self) -> StringOrBoolean

source§

fn SetUnion5Attribute(&self, _: StringOrBoolean)

source§

fn Union6Attribute(&self) -> UnsignedLongOrBoolean

source§

fn SetUnion6Attribute(&self, _: UnsignedLongOrBoolean)

source§

fn Union7Attribute(&self) -> BlobOrBoolean

source§

fn SetUnion7Attribute(&self, _: BlobOrBoolean)

source§

fn Union8Attribute(&self) -> BlobOrUnsignedLong

source§

fn SetUnion8Attribute(&self, _: BlobOrUnsignedLong)

source§

fn Union9Attribute(&self) -> ByteStringOrLong

source§

fn SetUnion9Attribute(&self, _: ByteStringOrLong)

source§

fn ArrayAttribute(&self, cx: SafeJSContext) -> NonNull<JSObject>

source§

fn AnyAttribute(&self, _: SafeJSContext) -> JSVal

source§

fn SetAnyAttribute(&self, _: SafeJSContext, _: HandleValue<'_>)

source§

fn ObjectAttribute(&self, cx: SafeJSContext) -> NonNull<JSObject>

source§

fn SetObjectAttribute(&self, _: SafeJSContext, _: *mut JSObject)

source§

fn GetBooleanAttributeNullable(&self) -> Option<bool>

source§

fn SetBooleanAttributeNullable(&self, _: Option<bool>)

source§

fn GetByteAttributeNullable(&self) -> Option<i8>

source§

fn SetByteAttributeNullable(&self, _: Option<i8>)

source§

fn GetOctetAttributeNullable(&self) -> Option<u8>

source§

fn SetOctetAttributeNullable(&self, _: Option<u8>)

source§

fn GetShortAttributeNullable(&self) -> Option<i16>

source§

fn SetShortAttributeNullable(&self, _: Option<i16>)

source§

fn GetUnsignedShortAttributeNullable(&self) -> Option<u16>

source§

fn SetUnsignedShortAttributeNullable(&self, _: Option<u16>)

source§

fn GetLongAttributeNullable(&self) -> Option<i32>

source§

fn SetLongAttributeNullable(&self, _: Option<i32>)

source§

fn GetUnsignedLongAttributeNullable(&self) -> Option<u32>

source§

fn SetUnsignedLongAttributeNullable(&self, _: Option<u32>)

source§

fn GetLongLongAttributeNullable(&self) -> Option<i64>

source§

fn SetLongLongAttributeNullable(&self, _: Option<i64>)

source§

fn GetUnsignedLongLongAttributeNullable(&self) -> Option<u64>

source§

fn SetUnsignedLongLongAttributeNullable(&self, _: Option<u64>)

source§

fn GetUnrestrictedFloatAttributeNullable(&self) -> Option<f32>

source§

fn SetUnrestrictedFloatAttributeNullable(&self, _: Option<f32>)

source§

fn GetFloatAttributeNullable(&self) -> Option<Finite<f32>>

source§

fn SetFloatAttributeNullable(&self, _: Option<Finite<f32>>)

source§

fn GetUnrestrictedDoubleAttributeNullable(&self) -> Option<f64>

source§

fn SetUnrestrictedDoubleAttributeNullable(&self, _: Option<f64>)

source§

fn GetDoubleAttributeNullable(&self) -> Option<Finite<f64>>

source§

fn SetDoubleAttributeNullable(&self, _: Option<Finite<f64>>)

source§

fn GetByteStringAttributeNullable(&self) -> Option<ByteString>

source§

fn SetByteStringAttributeNullable(&self, _: Option<ByteString>)

source§

fn GetStringAttributeNullable(&self) -> Option<DOMString>

source§

fn SetStringAttributeNullable(&self, _: Option<DOMString>)

source§

fn GetUsvstringAttributeNullable(&self) -> Option<USVString>

source§

fn SetUsvstringAttributeNullable(&self, _: Option<USVString>)

source§

fn SetBinaryRenamedAttribute(&self, _: DOMString)

source§

fn ForwardedAttribute(&self) -> Root<Dom<TestBinding>>

source§

fn BinaryRenamedAttribute(&self) -> DOMString

source§

fn SetBinaryRenamedAttribute2(&self, _: DOMString)

source§

fn BinaryRenamedAttribute2(&self) -> DOMString

source§

fn Attr_to_automatically_rename(&self) -> DOMString

source§

fn SetAttr_to_automatically_rename(&self, _: DOMString)

source§

fn GetEnumAttributeNullable(&self) -> Option<TestEnum>

source§

fn GetInterfaceAttributeNullable(&self) -> Option<Root<Dom<Blob>>>

source§

fn SetInterfaceAttributeNullable(&self, _: Option<&Blob>)

source§

fn GetInterfaceAttributeWeak(&self) -> Option<Root<Dom<URL>>>

source§

fn SetInterfaceAttributeWeak(&self, url: Option<&URL>)

source§

fn GetObjectAttributeNullable(
    &self,
    _: SafeJSContext
) -> Option<NonNull<JSObject>>

source§

fn SetObjectAttributeNullable(&self, _: SafeJSContext, _: *mut JSObject)

source§

fn GetUnionAttributeNullable(&self) -> Option<HTMLElementOrLong>

source§

fn SetUnionAttributeNullable(&self, _: Option<HTMLElementOrLong>)

source§

fn GetUnion2AttributeNullable(&self) -> Option<EventOrString>

source§

fn SetUnion2AttributeNullable(&self, _: Option<EventOrString>)

source§

fn GetUnion3AttributeNullable(&self) -> Option<BlobOrBoolean>

source§

fn SetUnion3AttributeNullable(&self, _: Option<BlobOrBoolean>)

source§

fn GetUnion4AttributeNullable(&self) -> Option<UnsignedLongOrBoolean>

source§

fn SetUnion4AttributeNullable(&self, _: Option<UnsignedLongOrBoolean>)

source§

fn GetUnion5AttributeNullable(&self) -> Option<StringOrBoolean>

source§

fn SetUnion5AttributeNullable(&self, _: Option<StringOrBoolean>)

source§

fn GetUnion6AttributeNullable(&self) -> Option<ByteStringOrLong>

source§

fn SetUnion6AttributeNullable(&self, _: Option<ByteStringOrLong>)

source§

fn BinaryRenamedMethod(&self)

source§

fn ReceiveVoid(&self)

source§

fn ReceiveBoolean(&self) -> bool

source§

fn ReceiveByte(&self) -> i8

source§

fn ReceiveOctet(&self) -> u8

source§

fn ReceiveShort(&self) -> i16

source§

fn ReceiveUnsignedShort(&self) -> u16

source§

fn ReceiveLong(&self) -> i32

source§

fn ReceiveUnsignedLong(&self) -> u32

source§

fn ReceiveLongLong(&self) -> i64

source§

fn ReceiveUnsignedLongLong(&self) -> u64

source§

fn ReceiveUnrestrictedFloat(&self) -> f32

source§

fn ReceiveFloat(&self) -> Finite<f32>

source§

fn ReceiveUnrestrictedDouble(&self) -> f64

source§

fn ReceiveDouble(&self) -> Finite<f64>

source§

fn ReceiveString(&self) -> DOMString

source§

fn ReceiveUsvstring(&self) -> USVString

source§

fn ReceiveByteString(&self) -> ByteString

source§

fn ReceiveEnum(&self) -> TestEnum

source§

fn ReceiveInterface(&self) -> Root<Dom<Blob>>

source§

fn ReceiveAny(&self, _: SafeJSContext) -> JSVal

source§

fn ReceiveObject(&self, cx: SafeJSContext) -> NonNull<JSObject>

source§

fn ReceiveUnion(&self) -> HTMLElementOrLong

source§

fn ReceiveUnion2(&self) -> EventOrString

source§

fn ReceiveUnion3(&self) -> StringOrLongSequence

source§

fn ReceiveUnion4(&self) -> StringOrStringSequence

source§

fn ReceiveUnion5(&self) -> BlobOrBlobSequence

source§

fn ReceiveUnion6(&self) -> StringOrUnsignedLong

source§

fn ReceiveUnion7(&self) -> StringOrBoolean

source§

fn ReceiveUnion8(&self) -> UnsignedLongOrBoolean

source§

fn ReceiveUnion9(&self) -> HTMLElementOrUnsignedLongOrStringOrBoolean

source§

fn ReceiveUnion10(&self) -> ByteStringOrLong

source§

fn ReceiveUnion11(&self) -> ByteStringSequenceOrLongOrString

source§

fn ReceiveSequence(&self) -> Vec<i32>

source§

fn ReceiveInterfaceSequence(&self) -> Vec<Root<Dom<Blob>>>

source§

fn ReceiveUnionIdentity(
    &self,
    _: SafeJSContext,
    arg: StringOrObject
) -> StringOrObject

source§

fn ReceiveNullableBoolean(&self) -> Option<bool>

source§

fn ReceiveNullableByte(&self) -> Option<i8>

source§

fn ReceiveNullableOctet(&self) -> Option<u8>

source§

fn ReceiveNullableShort(&self) -> Option<i16>

source§

fn ReceiveNullableUnsignedShort(&self) -> Option<u16>

source§

fn ReceiveNullableLong(&self) -> Option<i32>

source§

fn ReceiveNullableUnsignedLong(&self) -> Option<u32>

source§

fn ReceiveNullableLongLong(&self) -> Option<i64>

source§

fn ReceiveNullableUnsignedLongLong(&self) -> Option<u64>

source§

fn ReceiveNullableUnrestrictedFloat(&self) -> Option<f32>

source§

fn ReceiveNullableFloat(&self) -> Option<Finite<f32>>

source§

fn ReceiveNullableUnrestrictedDouble(&self) -> Option<f64>

source§

fn ReceiveNullableDouble(&self) -> Option<Finite<f64>>

source§

fn ReceiveNullableString(&self) -> Option<DOMString>

source§

fn ReceiveNullableUsvstring(&self) -> Option<USVString>

source§

fn ReceiveNullableByteString(&self) -> Option<ByteString>

source§

fn ReceiveNullableEnum(&self) -> Option<TestEnum>

source§

fn ReceiveNullableInterface(&self) -> Option<Root<Dom<Blob>>>

source§

fn ReceiveNullableObject(&self, cx: SafeJSContext) -> Option<NonNull<JSObject>>

source§

fn ReceiveNullableUnion(&self) -> Option<HTMLElementOrLong>

source§

fn ReceiveNullableUnion2(&self) -> Option<EventOrString>

source§

fn ReceiveNullableUnion3(&self) -> Option<StringOrLongSequence>

source§

fn ReceiveNullableUnion4(&self) -> Option<LongSequenceOrBoolean>

source§

fn ReceiveNullableUnion5(&self) -> Option<UnsignedLongOrBoolean>

source§

fn ReceiveNullableUnion6(&self) -> Option<ByteStringOrLong>

source§

fn ReceiveNullableSequence(&self) -> Option<Vec<i32>>

source§

fn ReceiveTestDictionaryWithSuccessOnKeyword(
    &self
) -> RootedTraceableBox<TestDictionary>

source§

fn DictMatchesPassedValues(
    &self,
    arg: RootedTraceableBox<TestDictionary>
) -> bool

source§

fn PassBoolean(&self, _: bool)

source§

fn PassByte(&self, _: i8)

source§

fn PassOctet(&self, _: u8)

source§

fn PassShort(&self, _: i16)

source§

fn PassUnsignedShort(&self, _: u16)

source§

fn PassLong(&self, _: i32)

source§

fn PassUnsignedLong(&self, _: u32)

source§

fn PassLongLong(&self, _: i64)

source§

fn PassUnsignedLongLong(&self, _: u64)

source§

fn PassUnrestrictedFloat(&self, _: f32)

source§

fn PassFloat(&self, _: Finite<f32>)

source§

fn PassUnrestrictedDouble(&self, _: f64)

source§

fn PassDouble(&self, _: Finite<f64>)

source§

fn PassString(&self, _: DOMString)

source§

fn PassUsvstring(&self, _: USVString)

source§

fn PassByteString(&self, _: ByteString)

source§

fn PassEnum(&self, _: TestEnum)

source§

fn PassInterface(&self, _: &Blob)

source§

fn PassTypedArray(&self, _: CustomAutoRooterGuard<'_, Int8Array>)

source§

fn PassTypedArray2(&self, _: CustomAutoRooterGuard<'_, ArrayBuffer>)

source§

fn PassTypedArray3(&self, _: CustomAutoRooterGuard<'_, ArrayBufferView>)

source§

fn PassUnion(&self, _: HTMLElementOrLong)

source§

fn PassUnion2(&self, _: EventOrString)

source§

fn PassUnion3(&self, _: BlobOrString)

source§

fn PassUnion4(&self, _: StringOrStringSequence)

source§

fn PassUnion5(&self, _: StringOrBoolean)

source§

fn PassUnion6(&self, _: UnsignedLongOrBoolean)

source§

fn PassUnion7(&self, _: StringSequenceOrUnsignedLong)

source§

fn PassUnion8(&self, _: ByteStringSequenceOrLong)

source§

fn PassUnion9(&self, _: TestDictionaryOrLong)

source§

fn PassUnion10(&self, _: SafeJSContext, _: StringOrObject)

source§

fn PassUnion11(&self, _: ArrayBufferOrArrayBufferView)

source§

fn PassUnionWithTypedef(&self, _: DocumentOrTestTypedef)

source§

fn PassUnionWithTypedef2(&self, _: LongSequenceOrTestTypedef)

source§

fn PassAny(&self, _: SafeJSContext, _: HandleValue<'_>)

source§

fn PassObject(&self, _: SafeJSContext, _: *mut JSObject)

source§

fn PassCallbackFunction(&self, _: Rc<Function>)

source§

fn PassCallbackInterface(&self, _: Rc<EventListener>)

source§

fn PassSequence(&self, _: Vec<i32>)

source§

fn PassAnySequence(
    &self,
    _: SafeJSContext,
    _: CustomAutoRooterGuard<'_, Vec<JSVal>>
)

source§

fn AnySequencePassthrough(
    &self,
    _: SafeJSContext,
    seq: CustomAutoRooterGuard<'_, Vec<JSVal>>
) -> Vec<JSVal>

source§

fn PassObjectSequence(
    &self,
    _: SafeJSContext,
    _: CustomAutoRooterGuard<'_, Vec<*mut JSObject>>
)

source§

fn PassStringSequence(&self, _: Vec<DOMString>)

source§

fn PassInterfaceSequence(&self, _: Vec<Root<Dom<Blob>>>)

source§

fn PassOverloaded(&self, _: CustomAutoRooterGuard<'_, ArrayBuffer>)

source§

fn PassOverloaded_(&self, _: DOMString)

source§

fn PassOverloadedDict(&self, _: &Node) -> DOMString

source§

fn PassOverloadedDict_(&self, u: &TestURLLike) -> DOMString

source§

fn PassNullableBoolean(&self, _: Option<bool>)

source§

fn PassNullableByte(&self, _: Option<i8>)

source§

fn PassNullableOctet(&self, _: Option<u8>)

source§

fn PassNullableShort(&self, _: Option<i16>)

source§

fn PassNullableUnsignedShort(&self, _: Option<u16>)

source§

fn PassNullableLong(&self, _: Option<i32>)

source§

fn PassNullableUnsignedLong(&self, _: Option<u32>)

source§

fn PassNullableLongLong(&self, _: Option<i64>)

source§

fn PassNullableUnsignedLongLong(&self, _: Option<u64>)

source§

fn PassNullableUnrestrictedFloat(&self, _: Option<f32>)

source§

fn PassNullableFloat(&self, _: Option<Finite<f32>>)

source§

fn PassNullableUnrestrictedDouble(&self, _: Option<f64>)

source§

fn PassNullableDouble(&self, _: Option<Finite<f64>>)

source§

fn PassNullableString(&self, _: Option<DOMString>)

source§

fn PassNullableUsvstring(&self, _: Option<USVString>)

source§

fn PassNullableByteString(&self, _: Option<ByteString>)

source§

fn PassNullableInterface(&self, _: Option<&Blob>)

source§

fn PassNullableObject(&self, _: SafeJSContext, _: *mut JSObject)

source§

fn PassNullableTypedArray(&self, _: CustomAutoRooterGuard<'_, Option<Int8Array>>)

source§

fn PassNullableUnion(&self, _: Option<HTMLElementOrLong>)

source§

fn PassNullableUnion2(&self, _: Option<EventOrString>)

source§

fn PassNullableUnion3(&self, _: Option<StringOrLongSequence>)

source§

fn PassNullableUnion4(&self, _: Option<LongSequenceOrBoolean>)

source§

fn PassNullableUnion5(&self, _: Option<UnsignedLongOrBoolean>)

source§

fn PassNullableUnion6(&self, _: Option<ByteStringOrLong>)

source§

fn PassNullableCallbackFunction(&self, _: Option<Rc<Function>>)

source§

fn PassNullableCallbackInterface(&self, _: Option<Rc<EventListener>>)

source§

fn PassNullableSequence(&self, _: Option<Vec<i32>>)

source§

fn PassOptionalBoolean(&self, _: Option<bool>)

source§

fn PassOptionalByte(&self, _: Option<i8>)

source§

fn PassOptionalOctet(&self, _: Option<u8>)

source§

fn PassOptionalShort(&self, _: Option<i16>)

source§

fn PassOptionalUnsignedShort(&self, _: Option<u16>)

source§

fn PassOptionalLong(&self, _: Option<i32>)

source§

fn PassOptionalUnsignedLong(&self, _: Option<u32>)

source§

fn PassOptionalLongLong(&self, _: Option<i64>)

source§

fn PassOptionalUnsignedLongLong(&self, _: Option<u64>)

source§

fn PassOptionalUnrestrictedFloat(&self, _: Option<f32>)

source§

fn PassOptionalFloat(&self, _: Option<Finite<f32>>)

source§

fn PassOptionalUnrestrictedDouble(&self, _: Option<f64>)

source§

fn PassOptionalDouble(&self, _: Option<Finite<f64>>)

source§

fn PassOptionalString(&self, _: Option<DOMString>)

source§

fn PassOptionalUsvstring(&self, _: Option<USVString>)

source§

fn PassOptionalByteString(&self, _: Option<ByteString>)

source§

fn PassOptionalEnum(&self, _: Option<TestEnum>)

source§

fn PassOptionalInterface(&self, _: Option<&Blob>)

source§

fn PassOptionalUnion(&self, _: Option<HTMLElementOrLong>)

source§

fn PassOptionalUnion2(&self, _: Option<EventOrString>)

source§

fn PassOptionalUnion3(&self, _: Option<StringOrLongSequence>)

source§

fn PassOptionalUnion4(&self, _: Option<LongSequenceOrBoolean>)

source§

fn PassOptionalUnion5(&self, _: Option<UnsignedLongOrBoolean>)

source§

fn PassOptionalUnion6(&self, _: Option<ByteStringOrLong>)

source§

fn PassOptionalAny(&self, _: SafeJSContext, _: HandleValue<'_>)

source§

fn PassOptionalObject(&self, _: SafeJSContext, _: Option<*mut JSObject>)

source§

fn PassOptionalCallbackFunction(&self, _: Option<Rc<Function>>)

source§

fn PassOptionalCallbackInterface(&self, _: Option<Rc<EventListener>>)

source§

fn PassOptionalSequence(&self, _: Option<Vec<i32>>)

source§

fn PassOptionalNullableBoolean(&self, _: Option<Option<bool>>)

source§

fn PassOptionalNullableByte(&self, _: Option<Option<i8>>)

source§

fn PassOptionalNullableOctet(&self, _: Option<Option<u8>>)

source§

fn PassOptionalNullableShort(&self, _: Option<Option<i16>>)

source§

fn PassOptionalNullableUnsignedShort(&self, _: Option<Option<u16>>)

source§

fn PassOptionalNullableLong(&self, _: Option<Option<i32>>)

source§

fn PassOptionalNullableUnsignedLong(&self, _: Option<Option<u32>>)

source§

fn PassOptionalNullableLongLong(&self, _: Option<Option<i64>>)

source§

fn PassOptionalNullableUnsignedLongLong(&self, _: Option<Option<u64>>)

source§

fn PassOptionalNullableUnrestrictedFloat(&self, _: Option<Option<f32>>)

source§

fn PassOptionalNullableFloat(&self, _: Option<Option<Finite<f32>>>)

source§

fn PassOptionalNullableUnrestrictedDouble(&self, _: Option<Option<f64>>)

source§

fn PassOptionalNullableDouble(&self, _: Option<Option<Finite<f64>>>)

source§

fn PassOptionalNullableString(&self, _: Option<Option<DOMString>>)

source§

fn PassOptionalNullableUsvstring(&self, _: Option<Option<USVString>>)

source§

fn PassOptionalNullableByteString(&self, _: Option<Option<ByteString>>)

source§

fn PassOptionalNullableInterface(&self, _: Option<Option<&Blob>>)

source§

fn PassOptionalNullableObject(&self, _: SafeJSContext, _: Option<*mut JSObject>)

source§

fn PassOptionalNullableUnion(&self, _: Option<Option<HTMLElementOrLong>>)

source§

fn PassOptionalNullableUnion2(&self, _: Option<Option<EventOrString>>)

source§

fn PassOptionalNullableUnion3(&self, _: Option<Option<StringOrLongSequence>>)

source§

fn PassOptionalNullableUnion4(&self, _: Option<Option<LongSequenceOrBoolean>>)

source§

fn PassOptionalNullableUnion5(&self, _: Option<Option<UnsignedLongOrBoolean>>)

source§

fn PassOptionalNullableUnion6(&self, _: Option<Option<ByteStringOrLong>>)

source§

fn PassOptionalNullableCallbackFunction(&self, _: Option<Option<Rc<Function>>>)

source§

fn PassOptionalNullableCallbackInterface(
    &self,
    _: Option<Option<Rc<EventListener>>>
)

source§

fn PassOptionalNullableSequence(&self, _: Option<Option<Vec<i32>>>)

source§

fn PassOptionalBooleanWithDefault(&self, _: bool)

source§

fn PassOptionalByteWithDefault(&self, _: i8)

source§

fn PassOptionalOctetWithDefault(&self, _: u8)

source§

fn PassOptionalShortWithDefault(&self, _: i16)

source§

fn PassOptionalUnsignedShortWithDefault(&self, _: u16)

source§

fn PassOptionalLongWithDefault(&self, _: i32)

source§

fn PassOptionalUnsignedLongWithDefault(&self, _: u32)

source§

fn PassOptionalLongLongWithDefault(&self, _: i64)

source§

fn PassOptionalUnsignedLongLongWithDefault(&self, _: u64)

source§

fn PassOptionalStringWithDefault(&self, _: DOMString)

source§

fn PassOptionalUsvstringWithDefault(&self, _: USVString)

source§

fn PassOptionalBytestringWithDefault(&self, _: ByteString)

source§

fn PassOptionalEnumWithDefault(&self, _: TestEnum)

source§

fn PassOptionalSequenceWithDefault(&self, _: Vec<i32>)

source§

fn PassOptionalNullableBooleanWithDefault(&self, _: Option<bool>)

source§

fn PassOptionalNullableByteWithDefault(&self, _: Option<i8>)

source§

fn PassOptionalNullableOctetWithDefault(&self, _: Option<u8>)

source§

fn PassOptionalNullableShortWithDefault(&self, _: Option<i16>)

source§

fn PassOptionalNullableUnsignedShortWithDefault(&self, _: Option<u16>)

source§

fn PassOptionalNullableLongWithDefault(&self, _: Option<i32>)

source§

fn PassOptionalNullableUnsignedLongWithDefault(&self, _: Option<u32>)

source§

fn PassOptionalNullableLongLongWithDefault(&self, _: Option<i64>)

source§

fn PassOptionalNullableUnsignedLongLongWithDefault(&self, _: Option<u64>)

source§

fn PassOptionalNullableStringWithDefault(&self, _: Option<DOMString>)

source§

fn PassOptionalNullableUsvstringWithDefault(&self, _: Option<USVString>)

source§

fn PassOptionalNullableByteStringWithDefault(&self, _: Option<ByteString>)

source§

fn PassOptionalNullableInterfaceWithDefault(&self, _: Option<&Blob>)

source§

fn PassOptionalNullableObjectWithDefault(
    &self,
    _: SafeJSContext,
    _: *mut JSObject
)

source§

fn PassOptionalNullableUnionWithDefault(&self, _: Option<HTMLElementOrLong>)

source§

fn PassOptionalNullableUnion2WithDefault(&self, _: Option<EventOrString>)

source§

fn PassOptionalNullableCallbackInterfaceWithDefault(
    &self,
    _: Option<Rc<EventListener>>
)

source§

fn PassOptionalAnyWithDefault(&self, _: SafeJSContext, _: HandleValue<'_>)

source§

fn PassOptionalNullableBooleanWithNonNullDefault(&self, _: Option<bool>)

source§

fn PassOptionalNullableByteWithNonNullDefault(&self, _: Option<i8>)

source§

fn PassOptionalNullableOctetWithNonNullDefault(&self, _: Option<u8>)

source§

fn PassOptionalNullableShortWithNonNullDefault(&self, _: Option<i16>)

source§

fn PassOptionalNullableUnsignedShortWithNonNullDefault(&self, _: Option<u16>)

source§

fn PassOptionalNullableLongWithNonNullDefault(&self, _: Option<i32>)

source§

fn PassOptionalNullableUnsignedLongWithNonNullDefault(&self, _: Option<u32>)

source§

fn PassOptionalNullableLongLongWithNonNullDefault(&self, _: Option<i64>)

source§

fn PassOptionalNullableUnsignedLongLongWithNonNullDefault(&self, _: Option<u64>)

source§

fn PassOptionalNullableStringWithNonNullDefault(&self, _: Option<DOMString>)

source§

fn PassOptionalNullableUsvstringWithNonNullDefault(&self, _: Option<USVString>)

source§

fn PassOptionalOverloaded(
    &self,
    a: &TestBinding,
    _: u32,
    _: u32
) -> Root<Dom<TestBinding>>

source§

fn PassOptionalOverloaded_(&self, _: &Blob, _: u32)

source§

fn PassVariadicBoolean(&self, _: Vec<bool>)

source§

fn PassVariadicBooleanAndDefault(&self, _: bool, _: Vec<bool>)

source§

fn PassVariadicByte(&self, _: Vec<i8>)

source§

fn PassVariadicOctet(&self, _: Vec<u8>)

source§

fn PassVariadicShort(&self, _: Vec<i16>)

source§

fn PassVariadicUnsignedShort(&self, _: Vec<u16>)

source§

fn PassVariadicLong(&self, _: Vec<i32>)

source§

fn PassVariadicUnsignedLong(&self, _: Vec<u32>)

source§

fn PassVariadicLongLong(&self, _: Vec<i64>)

source§

fn PassVariadicUnsignedLongLong(&self, _: Vec<u64>)

source§

fn PassVariadicUnrestrictedFloat(&self, _: Vec<f32>)

source§

fn PassVariadicFloat(&self, _: Vec<Finite<f32>>)

source§

fn PassVariadicUnrestrictedDouble(&self, _: Vec<f64>)

source§

fn PassVariadicDouble(&self, _: Vec<Finite<f64>>)

source§

fn PassVariadicString(&self, _: Vec<DOMString>)

source§

fn PassVariadicUsvstring(&self, _: Vec<USVString>)

source§

fn PassVariadicByteString(&self, _: Vec<ByteString>)

source§

fn PassVariadicEnum(&self, _: Vec<TestEnum>)

source§

fn PassVariadicInterface(&self, _: &[&Blob])

source§

fn PassVariadicUnion(&self, _: Vec<HTMLElementOrLong>)

source§

fn PassVariadicUnion2(&self, _: Vec<EventOrString>)

source§

fn PassVariadicUnion3(&self, _: Vec<BlobOrString>)

source§

fn PassVariadicUnion4(&self, _: Vec<BlobOrBoolean>)

source§

fn PassVariadicUnion5(&self, _: Vec<StringOrUnsignedLong>)

source§

fn PassVariadicUnion6(&self, _: Vec<UnsignedLongOrBoolean>)

source§

fn PassVariadicUnion7(&self, _: Vec<ByteStringOrLong>)

source§

fn PassVariadicAny(&self, _: SafeJSContext, _: Vec<HandleValue<'_>>)

source§

fn PassVariadicObject(&self, _: SafeJSContext, _: Vec<*mut JSObject>)

source§

fn BooleanMozPreference(&self, pref_name: DOMString) -> bool

source§

fn StringMozPreference(&self, pref_name: DOMString) -> DOMString

source§

fn PrefControlledAttributeDisabled(&self) -> bool

source§

fn PrefControlledAttributeEnabled(&self) -> bool

source§

fn PrefControlledMethodDisabled(&self)

source§

fn PrefControlledMethodEnabled(&self)

source§

fn FuncControlledAttributeDisabled(&self) -> bool

source§

fn FuncControlledAttributeEnabled(&self) -> bool

source§

fn FuncControlledMethodDisabled(&self)

source§

fn FuncControlledMethodEnabled(&self)

source§

fn PassRecord(&self, _: Record<DOMString, i32>)

source§

fn PassRecordWithUSVStringKey(&self, _: Record<USVString, i32>)

source§

fn PassRecordWithByteStringKey(&self, _: Record<ByteString, i32>)

source§

fn PassNullableRecord(&self, _: Option<Record<DOMString, i32>>)

source§

fn PassRecordOfNullableInts(&self, _: Record<DOMString, Option<i32>>)

source§

fn PassOptionalRecordOfNullableInts(
    &self,
    _: Option<Record<DOMString, Option<i32>>>
)

source§

fn PassOptionalNullableRecordOfNullableInts(
    &self,
    _: Option<Option<Record<DOMString, Option<i32>>>>
)

source§

fn PassCastableObjectRecord(&self, _: Record<DOMString, Root<Dom<TestBinding>>>)

source§

fn PassNullableCastableObjectRecord(
    &self,
    _: Record<DOMString, Option<Root<Dom<TestBinding>>>>
)

source§

fn PassCastableObjectNullableRecord(
    &self,
    _: Option<Record<DOMString, Root<Dom<TestBinding>>>>
)

source§

fn PassNullableCastableObjectNullableRecord(
    &self,
    _: Option<Record<DOMString, Option<Root<Dom<TestBinding>>>>>
)

source§

fn PassOptionalRecord(&self, _: Option<Record<DOMString, i32>>)

source§

fn PassOptionalNullableRecord(&self, _: Option<Option<Record<DOMString, i32>>>)

source§

fn PassOptionalNullableRecordWithDefaultValue(
    &self,
    _: Option<Record<DOMString, i32>>
)

source§

fn PassOptionalObjectRecord(
    &self,
    _: Option<Record<DOMString, Root<Dom<TestBinding>>>>
)

source§

fn PassStringRecord(&self, _: Record<DOMString, DOMString>)

source§

fn PassByteStringRecord(&self, _: Record<DOMString, ByteString>)

source§

fn PassRecordOfRecords(&self, _: Record<DOMString, Record<DOMString, i32>>)

source§

fn PassRecordUnion(&self, _: LongOrStringByteStringRecord)

source§

fn PassRecordUnion2(&self, _: TestBindingOrStringByteStringRecord)

source§

fn PassRecordUnion3(
    &self,
    _: TestBindingOrByteStringSequenceSequenceOrStringByteStringRecord
)

source§

fn ReceiveRecord(&self) -> Record<DOMString, i32>

source§

fn ReceiveRecordWithUSVStringKey(&self) -> Record<USVString, i32>

source§

fn ReceiveRecordWithByteStringKey(&self) -> Record<ByteString, i32>

source§

fn ReceiveNullableRecord(&self) -> Option<Record<DOMString, i32>>

source§

fn ReceiveRecordOfNullableInts(&self) -> Record<DOMString, Option<i32>>

source§

fn ReceiveNullableRecordOfNullableInts(
    &self
) -> Option<Record<DOMString, Option<i32>>>

source§

fn ReceiveRecordOfRecords(&self) -> Record<DOMString, Record<DOMString, i32>>

source§

fn ReceiveAnyRecord(&self) -> Record<DOMString, JSVal>

source§

fn ReturnResolvedPromise(
    &self,
    cx: SafeJSContext,
    v: HandleValue<'_>
) -> Result<Rc<Promise>, Error>

source§

fn ReturnRejectedPromise(
    &self,
    cx: SafeJSContext,
    v: HandleValue<'_>
) -> Result<Rc<Promise>, Error>

source§

fn PromiseResolveNative(&self, cx: SafeJSContext, p: &Promise, v: HandleValue<'_>)

source§

fn PromiseRejectNative(&self, cx: SafeJSContext, p: &Promise, v: HandleValue<'_>)

source§

fn PromiseRejectWithTypeError(&self, p: &Promise, s: USVString)

source§

fn ResolvePromiseDelayed(&self, p: &Promise, value: DOMString, delay: u64)

source§

fn PromiseNativeHandler(
    &self,
    resolve: Option<Rc<SimpleCallback>>,
    reject: Option<Rc<SimpleCallback>>,
    comp: InRealm<'_>
) -> Rc<Promise>

source§

fn PromiseAttribute(&self, comp: InRealm<'_>) -> Rc<Promise>

source§

fn AcceptPromise(&self, _promise: &Promise)

source§

fn PassSequenceSequence(&self, _seq: Vec<Vec<i32>>)

source§

fn ReturnSequenceSequence(&self) -> Vec<Vec<i32>>

source§

fn PassUnionSequenceSequence(&self, seq: LongOrLongSequenceSequence)

source§

fn CrashHard(&self)

source§

fn AdvanceClock(&self, ms: i32)

source§

fn Panic(&self)

source§

fn EntryGlobal(&self) -> Root<Dom<GlobalScope>>

source§

fn IncumbentGlobal(&self) -> Root<Dom<GlobalScope>>

source§

fn SemiExposedBoolFromInterface(&self) -> bool

source§

fn BoolFromSemiExposedPartialInterface(&self) -> bool

source§

fn SemiExposedBoolFromPartialInterface(&self) -> bool

source§

fn GetDictionaryWithParent(
    &self,
    s1: DOMString,
    s2: DOMString
) -> TestDictionaryWithParent

source§

impl ToJSValConvertible for TestBinding

source§

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

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

impl DerivedFrom<TestBinding> for TestBinding

source§

impl DerivedFrom<TestBinding> for TestBindingProxy

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere
    U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> MaybeBoxed<Box<T, Global>> for T

source§

fn maybe_boxed(self) -> Box<T, Global>

Convert
source§

impl<T> MaybeBoxed<T> for T

source§

fn maybe_boxed(self) -> T

Convert
source§

impl<T> Pointable for T

source§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for Twhere
    V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
    S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> Erased for T