Struct script::dom::urlsearchparams::URLSearchParams
source · #[repr(C)]pub struct URLSearchParams {
reflector_: Reflector,
list: DomRefCell<Vec<(String, String)>>,
url: MutableWeakRef<URL>,
}
Fields
reflector_: Reflector
list: DomRefCell<Vec<(String, String)>>
url: MutableWeakRef<URL>
Implementations
sourceimpl URLSearchParams
impl URLSearchParams
fn __assert_parent_type(&self)
sourceimpl URLSearchParams
impl URLSearchParams
fn new_inherited(url: Option<&URL>) -> URLSearchParams
pub fn new(global: &GlobalScope, url: Option<&URL>) -> Root<Dom<URLSearchParams>>
pub fn Constructor(
global: &GlobalScope,
init: USVStringSequenceSequenceOrUSVStringUSVStringRecordOrUSVString
) -> Result<Root<Dom<URLSearchParams>>, Error>
pub fn set_list(&self, list: Vec<(String, String)>)
sourceimpl URLSearchParams
impl URLSearchParams
pub fn serialize_utf8(&self) -> String
fn update_steps(&self)
Trait Implementations
sourceimpl DomObject for URLSearchParams
impl DomObject for URLSearchParams
sourceimpl DomObjectIteratorWrap for URLSearchParams
impl DomObjectIteratorWrap for URLSearchParams
sourceconst ITER_WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<IterableIterator<Self>>) -> Root<Dom<IterableIterator<Self>>> = {dom::bindings::codegen::Bindings::URLSearchParamsBinding::URLSearchParamsIteratorBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::bindings::iterable::IterableIterator<dom::urlsearchparams::URLSearchParams>>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::bindings::iterable::IterableIterator<dom::urlsearchparams::URLSearchParams>>>}
const ITER_WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<IterableIterator<Self>>) -> Root<Dom<IterableIterator<Self>>> = {dom::bindings::codegen::Bindings::URLSearchParamsBinding::URLSearchParamsIteratorBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::bindings::iterable::IterableIterator<dom::urlsearchparams::URLSearchParams>>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::bindings::iterable::IterableIterator<dom::urlsearchparams::URLSearchParams>>>}
Function pointer to the wrap function for IterableIterator
sourceimpl DomObjectWrap for URLSearchParams
impl DomObjectWrap for URLSearchParams
sourceconst WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::URLSearchParamsBinding::URLSearchParamsBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::urlsearchparams::URLSearchParams>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::urlsearchparams::URLSearchParams>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::URLSearchParamsBinding::URLSearchParamsBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::urlsearchparams::URLSearchParams>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::urlsearchparams::URLSearchParams>>}
Function pointer to the general wrap function type
sourceimpl Extractable for URLSearchParams
impl Extractable for URLSearchParams
fn extract(&self, global: &GlobalScope) -> Result<ExtractedBody, Error>
sourceimpl HasParent for URLSearchParams
impl HasParent for URLSearchParams
sourceimpl IDLInterface for URLSearchParams
impl IDLInterface for URLSearchParams
sourceimpl Iterable for URLSearchParams
impl Iterable for URLSearchParams
sourcefn get_iterable_length(&self) -> u32
fn get_iterable_length(&self) -> u32
Return the number of entries that can be iterated over.
sourcefn get_value_at_index(&self, n: u32) -> USVString
fn get_value_at_index(&self, n: u32) -> USVString
Return the value at the provided index.
sourcefn get_key_at_index(&self, n: u32) -> USVString
fn get_key_at_index(&self, n: u32) -> USVString
Return the key at the provided index.
sourceimpl JSTraceable for URLSearchParams
impl JSTraceable for URLSearchParams
sourceimpl MallocSizeOf for URLSearchParams
impl MallocSizeOf for URLSearchParams
sourcefn 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. Read more
sourceimpl MutDomObject for URLSearchParams
impl MutDomObject for URLSearchParams
sourceunsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
Initializes the Reflector
sourceimpl PartialEq<URLSearchParams> for URLSearchParams
impl PartialEq<URLSearchParams> for URLSearchParams
sourcefn eq(&self, other: &URLSearchParams) -> bool
fn eq(&self, other: &URLSearchParams) -> bool
sourceimpl ToJSValConvertible for URLSearchParams
impl ToJSValConvertible for URLSearchParams
sourceunsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
Convert
self
to a JSVal
. JSAPI failure causes a panic.sourceimpl URLSearchParamsMethods for URLSearchParams
impl URLSearchParamsMethods for URLSearchParams
fn Append(&self, name: USVString, value: USVString)
fn Delete(&self, name: USVString)
fn Get(&self, name: USVString) -> Option<USVString>
fn GetAll(&self, name: USVString) -> Vec<USVString> ⓘ
fn Has(&self, name: USVString) -> bool
fn Set(&self, name: USVString, value: USVString)
fn Sort(&self)
fn Stringifier(&self) -> DOMString
Auto Trait Implementations
impl !RefUnwindSafe for URLSearchParams
impl !Send for URLSearchParams
impl !Sync for URLSearchParams
impl Unpin for URLSearchParams
impl !UnwindSafe for URLSearchParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
sourcefn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
sourceimpl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
sourcefn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert