web-tools

Crates.ioweb-tools
lib.rsweb-tools
version0.2.3
sourcesrc
created_at2023-12-12 15:01:41.897731
updated_at2024-02-12 13:04:10.495447
descriptionTools for the Web
homepage
repositoryhttps://github.com/ctron/web-tools
max_upload_size
id1066462
size23,092
Jens Reimann (ctron)

documentation

README

web-tools

crates.io docs.rs

Tools for the Web

Usage

Add it to your project:

cargo add web-tools

Rationale

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();
}

Functionality

  • 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.
Commit count: 6

cargo fmt