Struct script::dom::bindings::codegen::Bindings::TestBindingBinding::TestDictionary
source · pub struct TestDictionary {Show 28 fields
pub anyValue: RootedTraceableBox<Heap<JSVal>>,
pub booleanValue: Option<bool>,
pub byteValue: Option<i8>,
pub dict: RootedTraceableBox<TestDictionaryDefaults>,
pub doubleValue: Option<Finite<f64>>,
pub elementSequence: Option<Vec<Root<Dom<Element>>>>,
pub enumValue: Option<TestEnum>,
pub floatValue: Option<Finite<f32>>,
pub interfaceValue: Option<Root<Dom<Blob>>>,
pub longLongValue: Option<i64>,
pub longValue: Option<i32>,
pub noCallbackImport: Option<Rc<SimpleCallback>>,
pub noCallbackImport2: Option<Rc<callbackWithOnlyOneOptionalArg>>,
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<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 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