pub struct JsNullish(/* private fields */);Implementations§
Source§impl JsNullish
impl JsNullish
pub fn into_nullable_ref<T>(&self) -> &JsNullable<T>
pub fn into_nullable<T>(self) -> JsNullable<T>
Methods from Deref<Target = JsValue>§
pub fn browser(&self) -> &Browser
Sourcepub fn retrieve_json(&self) -> RetrieveFuture<'_, Value>
pub fn retrieve_json(&self) -> RetrieveFuture<'_, Value>
Retrive this value from the JS side to the Rust side. Returns Future whose output is a serde_json::Value.
async fn example(input: &HTMLInputElement) {
let _val = input.get_value().retrieve_json().await;
}Trait Implementations§
Source§impl JsCast for JsNullish
impl JsCast for JsNullish
fn unchecked_from_js(val: JsValue) -> JsNullish
fn unchecked_from_js_ref(val: &JsValue) -> &JsNullish
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
Source§impl RpcDeserialize for JsNullish
impl RpcDeserialize for JsNullish
Auto Trait Implementations§
impl Freeze for JsNullish
impl !RefUnwindSafe for JsNullish
impl Send for JsNullish
impl Sync for JsNullish
impl Unpin for JsNullish
impl !UnwindSafe for JsNullish
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