pub(crate) struct TestDictionary<D: DomTypes> {Show 28 fields
pub(crate) anyValue: RootedTraceableBox<Heap<JSVal>>,
pub(crate) booleanValue: Option<bool>,
pub(crate) byteValue: Option<i8>,
pub(crate) dict: RootedTraceableBox<TestDictionaryDefaults>,
pub(crate) doubleValue: Option<Finite<f64>>,
pub(crate) elementSequence: Option<Vec<DomRoot<D::Element>>>,
pub(crate) enumValue: Option<TestEnum>,
pub(crate) floatValue: Option<Finite<f32>>,
pub(crate) interfaceValue: Option<DomRoot<D::Blob>>,
pub(crate) longLongValue: Option<i64>,
pub(crate) longValue: Option<i32>,
pub(crate) noCallbackImport: Option<Rc<SimpleCallback<D>>>,
pub(crate) noCallbackImport2: Option<Rc<callbackWithOnlyOneOptionalArg<D>>>,
pub(crate) nonRequiredNullable: Option<Option<DOMString>>,
pub(crate) nonRequiredNullable2: Option<Option<DOMString>>,
pub(crate) objectValue: Option<RootedTraceableBox<Heap<*mut JSObject>>>,
pub(crate) octetValue: Option<u8>,
pub(crate) requiredValue: bool,
pub(crate) seqDict: Option<Vec<RootedTraceableBox<TestDictionaryDefaults>>>,
pub(crate) shortValue: Option<i16>,
pub(crate) stringValue: Option<DOMString>,
pub(crate) type_: Option<DOMString>,
pub(crate) unrestrictedDoubleValue: Option<f64>,
pub(crate) unrestrictedFloatValue: Option<f32>,
pub(crate) unsignedLongLongValue: Option<u64>,
pub(crate) unsignedLongValue: Option<u32>,
pub(crate) unsignedShortValue: Option<u16>,
pub(crate) usvstringValue: Option<USVString>,
}
Fields§
§anyValue: RootedTraceableBox<Heap<JSVal>>
§booleanValue: Option<bool>
§byteValue: Option<i8>
§dict: RootedTraceableBox<TestDictionaryDefaults>
§doubleValue: Option<Finite<f64>>
§elementSequence: Option<Vec<DomRoot<D::Element>>>
§enumValue: Option<TestEnum>
§floatValue: Option<Finite<f32>>
§interfaceValue: Option<DomRoot<D::Blob>>
§longLongValue: Option<i64>
§longValue: Option<i32>
§noCallbackImport: Option<Rc<SimpleCallback<D>>>
§noCallbackImport2: Option<Rc<callbackWithOnlyOneOptionalArg<D>>>
§nonRequiredNullable: Option<Option<DOMString>>
§nonRequiredNullable2: Option<Option<DOMString>>
§objectValue: Option<RootedTraceableBox<Heap<*mut JSObject>>>
§octetValue: Option<u8>
§requiredValue: bool
§seqDict: Option<Vec<RootedTraceableBox<TestDictionaryDefaults>>>
§shortValue: Option<i16>
§stringValue: Option<DOMString>
§type_: Option<DOMString>
§unrestrictedDoubleValue: Option<f64>
§unrestrictedFloatValue: Option<f32>
§unsignedLongLongValue: Option<u64>
§unsignedLongValue: Option<u32>
§unsignedShortValue: Option<u16>
§usvstringValue: Option<USVString>
Implementations§
Source§impl<D: DomTypes> TestDictionary<D>
impl<D: DomTypes> TestDictionary<D>
pub(crate) fn new( cx: SafeJSContext, val: HandleValue<'_>, ) -> Result<ConversionResult<RootedTraceableBox<TestDictionary<D>>>, ()>
Source§impl<D: DomTypes> TestDictionary<D>
impl<D: DomTypes> TestDictionary<D>
pub(crate) unsafe fn to_jsobject( &self, cx: *mut JSContext, obj: MutableHandleObject<'_>, )
Trait Implementations§
Source§impl<D: DomTypes> ToJSValConvertible for TestDictionary<D>
impl<D: DomTypes> ToJSValConvertible for TestDictionary<D>
Auto Trait Implementations§
impl<D> Freeze for TestDictionary<D>
impl<D> !RefUnwindSafe for TestDictionary<D>
impl<D> !Send for TestDictionary<D>
impl<D> !Sync for TestDictionary<D>
impl<D> Unpin for TestDictionary<D>
impl<D> !UnwindSafe for TestDictionary<D>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
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