pub(crate) struct TestDictionary {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<Root<Dom<Element>>>>,
pub(crate) enumValue: Option<TestEnum>,
pub(crate) floatValue: Option<Finite<f32>>,
pub(crate) interfaceValue: Option<Root<Dom<Blob>>>,
pub(crate) longLongValue: Option<i64>,
pub(crate) longValue: Option<i32>,
pub(crate) noCallbackImport: Option<Rc<SimpleCallback>>,
pub(crate) noCallbackImport2: Option<Rc<callbackWithOnlyOneOptionalArg>>,
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<Root<Dom<Element>>>>
§enumValue: Option<TestEnum>
§floatValue: Option<Finite<f32>>
§interfaceValue: Option<Root<Dom<Blob>>>
§longLongValue: Option<i64>
§longValue: Option<i32>
§noCallbackImport: Option<Rc<SimpleCallback>>
§noCallbackImport2: Option<Rc<callbackWithOnlyOneOptionalArg>>
§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 TestDictionary
impl TestDictionary
pub(crate) fn new( cx: SafeJSContext, val: HandleValue<'_>, ) -> Result<ConversionResult<RootedTraceableBox<TestDictionary>>, ()>
source§impl TestDictionary
impl TestDictionary
pub(crate) unsafe fn to_jsobject( &self, cx: *mut JSContext, obj: MutableHandleObject<'_>, )
Trait Implementations§
source§impl ToJSValConvertible for TestDictionary
impl ToJSValConvertible for TestDictionary
Auto Trait Implementations§
impl Freeze for TestDictionary
impl !RefUnwindSafe for TestDictionary
impl !Send for TestDictionary
impl !Sync for TestDictionary
impl Unpin for TestDictionary
impl !UnwindSafe for TestDictionary
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