web-tools 0.2.3

Tools for the Web
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Optimistic operations
//!
//! In may cases, Web APIs in Rust return [`Result`] or [`Option`] and enforce strict types. Then
//! again in JavaScript-land one can simply call `.focus()` on something and it works, breaks, or
//! does nothing. But the code looks a bit simpler.
//!
//! Optimistic traits bring part of this to Rust. Functions on [`yew::prelude::NodeRef`] just work,
//! or fail silently.

mod element;
mod html_element;
mod html_form_element;
mod html_input_element;

pub use element::*;
pub use html_element::*;
pub use html_form_element::*;
pub use html_input_element::*;