Tools for the Web
Add it to your project:
cargo add web-tools
Rust has a strict type system, which is great. But sometimes it's just convenient to use:
use web_tools::prelude::*;
fn callback(node: &NodeRef) {
node.focus();
}
- Optimistic traits: execute some function on an element, if it supports it … or do nothing.
- Iterators for things that should be iterable, but don't implement
IntoIterator
.