use-check 0.0.1

Composable pass-fail check primitives for RustUse
Documentation
  • Coverage
  • 8.33%
    1 out of 12 items documented1 out of 8 items with examples
  • Size
  • Source code size: 4.62 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 346.64 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-validate
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-check

Pass/fail check primitives for RustUse.

Install

[dependencies]
use-check = "0.0.1"

Foundation

use-check provides the smallest shared validation vocabulary in this workspace: a CheckResult enum plus tiny helper constructors.

Example

use use_check::{check, fail, pass};

assert!(check(true).is_pass());
assert!(pass().is_pass());
assert!(fail().is_fail());

When to use directly

Choose use-check when a lightweight pass/fail result is the only validation primitive you need.

Scope

  • Results stay boolean and explicit.
  • Aggregation, messages, and reporting layers are out of scope.

Status

use-check is a pre-1.0 crate with a deliberately tiny API.