Struct script::dom::urlsearchparams::URLSearchParams
source · #[repr(C)]pub struct URLSearchParams {
reflector_: Reflector,
list: DomRefCell<Vec<(String, String)>>,
url: MutableWeakRef<URL>,
}
Expand description
Fields§
§reflector_: Reflector
§list: DomRefCell<Vec<(String, String)>>
§url: MutableWeakRef<URL>
Implementations§
source§impl URLSearchParams
impl URLSearchParams
fn __assert_parent_type(&self)
source§impl URLSearchParams
impl URLSearchParams
fn new_inherited(url: Option<&URL>) -> URLSearchParams
pub fn new( global: &GlobalScope, url: Option<&URL>, can_gc: CanGc, ) -> Root<Dom<URLSearchParams>>
pub fn new_with_proto( global: &GlobalScope, proto: Option<HandleObject<'_>>, url: Option<&URL>, can_gc: CanGc, ) -> Root<Dom<URLSearchParams>>
pub fn set_list(&self, list: Vec<(String, String)>)
Trait Implementations§
source§impl DomObject for URLSearchParams
impl DomObject for URLSearchParams
source§impl DomObjectIteratorWrap for URLSearchParams
impl DomObjectIteratorWrap for URLSearchParams
source§const ITER_WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<IterableIterator<Self>>, _: CanGc) -> Root<Dom<IterableIterator<Self>>> = {dom::bindings::codegen::Bindings::URLSearchParamsBinding::URLSearchParamsIterator_Binding::Wrap as for<'a, 'b> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::bindings::iterable::IterableIterator<dom::urlsearchparams::URLSearchParams>>, script_runtime::CanGc) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::bindings::iterable::IterableIterator<dom::urlsearchparams::URLSearchParams>>>}
const ITER_WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<IterableIterator<Self>>, _: CanGc) -> Root<Dom<IterableIterator<Self>>> = {dom::bindings::codegen::Bindings::URLSearchParamsBinding::URLSearchParamsIterator_Binding::Wrap as for<'a, 'b> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::bindings::iterable::IterableIterator<dom::urlsearchparams::URLSearchParams>>, script_runtime::CanGc) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::bindings::iterable::IterableIterator<dom::urlsearchparams::URLSearchParams>>>}
Function pointer to the wrap function for
IterableIterator<T>
source§impl DomObjectWrap for URLSearchParams
impl DomObjectWrap for URLSearchParams
source§const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>, _: CanGc) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::URLSearchParamsBinding::URLSearchParams_Binding::Wrap as for<'a, 'b> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::urlsearchparams::URLSearchParams>, script_runtime::CanGc) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::urlsearchparams::URLSearchParams>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>, _: CanGc) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::URLSearchParamsBinding::URLSearchParams_Binding::Wrap as for<'a, 'b> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::urlsearchparams::URLSearchParams>, script_runtime::CanGc) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::urlsearchparams::URLSearchParams>>}
Function pointer to the general wrap function type
source§impl Extractable for URLSearchParams
impl Extractable for URLSearchParams
fn extract( &self, global: &GlobalScope, can_gc: CanGc, ) -> Result<ExtractedBody, Error>
source§impl HasParent for URLSearchParams
impl HasParent for URLSearchParams
source§impl IDLInterface for URLSearchParams
impl IDLInterface for URLSearchParams
source§impl Iterable for URLSearchParams
impl Iterable for URLSearchParams
source§fn get_iterable_length(&self) -> u32
fn get_iterable_length(&self) -> u32
Return the number of entries that can be iterated over.
source§fn get_value_at_index(&self, n: u32) -> USVString
fn get_value_at_index(&self, n: u32) -> USVString
Return the value at the provided index.
source§fn get_key_at_index(&self, n: u32) -> USVString
fn get_key_at_index(&self, n: u32) -> USVString
Return the key at the provided index.
source§impl MallocSizeOf for URLSearchParams
impl MallocSizeOf for URLSearchParams
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
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 URLSearchParams
impl MutDomObject for URLSearchParams
source§impl PartialEq for URLSearchParams
impl PartialEq for URLSearchParams
source§impl ToJSValConvertible for URLSearchParams
impl ToJSValConvertible for URLSearchParams
source§impl Traceable for URLSearchParams
impl Traceable for URLSearchParams
source§impl URLSearchParamsMethods for URLSearchParams
impl URLSearchParamsMethods for URLSearchParams
source§fn Constructor(
global: &GlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
init: USVStringSequenceSequenceOrUSVStringUSVStringRecordOrUSVString,
) -> Result<Root<Dom<URLSearchParams>>, Error>
fn Constructor( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, init: USVStringSequenceSequenceOrUSVStringUSVStringRecordOrUSVString, ) -> Result<Root<Dom<URLSearchParams>>, Error>
impl Eq for URLSearchParams
Auto Trait Implementations§
impl !Freeze for URLSearchParams
impl !RefUnwindSafe for URLSearchParams
impl !Send for URLSearchParams
impl !Sync for URLSearchParams
impl Unpin for URLSearchParams
impl !UnwindSafe for URLSearchParams
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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