pub struct TestDictionary<D>where
D: DomTypes,{Show 28 fields
pub anyValue: RootedTraceableBox<Heap<Value>>,
pub booleanValue: Option<bool>,
pub byteValue: Option<i8>,
pub dict: RootedTraceableBox<TestDictionaryDefaults>,
pub doubleValue: Option<Finite<f64>>,
pub elementSequence: Option<Vec<Root<Dom<<D as DomTypes>::Element>>>>,
pub enumValue: Option<TestEnum>,
pub floatValue: Option<Finite<f32>>,
pub interfaceValue: Option<Root<Dom<<D as DomTypes>::Blob>>>,
pub longLongValue: Option<i64>,
pub longValue: Option<i32>,
pub noCallbackImport: Option<Rc<SimpleCallback<D>>>,
pub noCallbackImport2: Option<Rc<callbackWithOnlyOneOptionalArg<D>>>,
pub nonRequiredNullable: Option<Option<DOMString>>,
pub nonRequiredNullable2: Option<Option<DOMString>>,
pub objectValue: Option<RootedTraceableBox<Heap<*mut JSObject>>>,
pub octetValue: Option<u8>,
pub requiredValue: bool,
pub seqDict: Option<Vec<RootedTraceableBox<TestDictionaryDefaults>>>,
pub shortValue: Option<i16>,
pub stringValue: Option<DOMString>,
pub type_: Option<DOMString>,
pub unrestrictedDoubleValue: Option<f64>,
pub unrestrictedFloatValue: Option<f32>,
pub unsignedLongLongValue: Option<u64>,
pub unsignedLongValue: Option<u32>,
pub unsignedShortValue: Option<u16>,
pub usvstringValue: Option<USVString>,
}
Fields§
§anyValue: RootedTraceableBox<Heap<Value>>
§booleanValue: Option<bool>
§byteValue: Option<i8>
§dict: RootedTraceableBox<TestDictionaryDefaults>
§doubleValue: Option<Finite<f64>>
§elementSequence: Option<Vec<Root<Dom<<D as DomTypes>::Element>>>>
§enumValue: Option<TestEnum>
§floatValue: Option<Finite<f32>>
§interfaceValue: Option<Root<Dom<<D as DomTypes>::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> TestDictionary<D>where
D: DomTypes,
impl<D> TestDictionary<D>where
D: DomTypes,
pub fn new( cx: JSContext, val: Handle<'_, Value>, ) -> Result<ConversionResult<RootedTraceableBox<TestDictionary<D>>>, ()>
Source§impl<D> TestDictionary<D>where
D: DomTypes,
impl<D> TestDictionary<D>where
D: DomTypes,
pub unsafe fn to_jsobject( &self, cx: *mut JSContext, obj: MutableHandle<'_, *mut JSObject>, )
Trait Implementations§
Source§impl<D> ToJSValConvertible for TestDictionary<D>where
D: DomTypes,
impl<D> ToJSValConvertible for TestDictionary<D>where
D: DomTypes,
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