pub struct URLSearchParams { /* private fields */ }Expand description
The URLSearchParams interface defines utility methods to work with the query string of a URL.
Implementations§
Source§impl URLSearchParams
impl URLSearchParams
pub const js_iterate: __impl_iterate = __impl_iterate
pub const js_entries: __impl_entries = __impl_entries
pub const js_keys: __impl_keys = __impl_keys
pub const js_values: __impl_values = __impl_values
Source§impl URLSearchParams
impl URLSearchParams
Sourcepub fn iterate<'js>(
&self,
ctx: Ctx<'js>,
this: This<Self>,
) -> Result<Object<'js>>
pub fn iterate<'js>( &self, ctx: Ctx<'js>, this: This<Self>, ) -> Result<Object<'js>>
Returns an iterator allowing iteration through all key/value pairs contained in this object in the same order as they appear in the query string.
Sourcepub fn entries<'js>(
&self,
ctx: Ctx<'js>,
this: This<Self>,
) -> Result<Object<'js>>
pub fn entries<'js>( &self, ctx: Ctx<'js>, this: This<Self>, ) -> Result<Object<'js>>
Returns an iterator allowing iteration through all key/value pairs contained in this object in the same order as they appear in the query string.
Trait Implementations§
Source§impl Clone for URLSearchParams
impl Clone for URLSearchParams
Source§fn clone(&self) -> URLSearchParams
fn clone(&self) -> URLSearchParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'js> ConstructorCreator<'js, URLSearchParams> for ConstructorCreate<URLSearchParams>
impl<'js> ConstructorCreator<'js, URLSearchParams> for ConstructorCreate<URLSearchParams>
fn create_constructor(&self, ctx: &Ctx<'js>) -> Result<Option<Constructor<'js>>>
Source§impl Default for URLSearchParams
impl Default for URLSearchParams
Source§fn default() -> URLSearchParams
fn default() -> URLSearchParams
Returns the “default value” for a type. Read more
Source§impl<'js> FromJs<'js> for URLSearchParamswhere
for<'a> CloneWrapper<'a, Self>: CloneTrait<Self>,
impl<'js> FromJs<'js> for URLSearchParamswhere
for<'a> CloneWrapper<'a, Self>: CloneTrait<Self>,
Source§impl<'js> IntoJs<'js> for URLSearchParams
impl<'js> IntoJs<'js> for URLSearchParams
Source§impl<'js> JsClass<'js> for URLSearchParams
impl<'js> JsClass<'js> for URLSearchParams
Source§fn constructor(ctx: &Ctx<'js>) -> Result<Option<Constructor<'js>>>
fn constructor(ctx: &Ctx<'js>) -> Result<Option<Constructor<'js>>>
Returns a predefined constructor for this specific class type if there is one.
Source§impl<'js> JsLifetime<'js> for URLSearchParams
impl<'js> JsLifetime<'js> for URLSearchParams
Source§type Changed<'to> = URLSearchParams
type Changed<'to> = URLSearchParams
The target which has the same type as a
Self but with another lifetime 'tSource§impl MethodImplementor<URLSearchParams> for MethodImpl<URLSearchParams>
impl MethodImplementor<URLSearchParams> for MethodImpl<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<'js, T> AsProperty<'js, T> for Twhere
T: IntoJs<'js>,
impl<'js, T> AsProperty<'js, T> for Twhere
T: IntoJs<'js>,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'js, T> FromParam<'js> for Twhere
T: FromJs<'js>,
impl<'js, T> FromParam<'js> for Twhere
T: FromJs<'js>,
Source§fn param_requirement() -> ParamRequirement
fn param_requirement() -> ParamRequirement
The parameters requirements this value requires.
Source§fn from_param<'a>(params: &mut ParamsAccessor<'a, 'js>) -> Result<T, Error>
fn from_param<'a>(params: &mut ParamsAccessor<'a, 'js>) -> Result<T, Error>
Convert from a parameter value.
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 more