Registry / utility / wasmer-enumset

wasmer-enumset

JSON →
library1.0.1rscratesunverified

A library for creating compact sets of enums. Wasmer fork to work around a syn issue.

# Cargo.toml [dependencies] wasmer_enumset = "1.0.1"
INSTALL
IMPORT
SIG · WASMER-ENUMSET
W
wasmer-enumset
utilityrustv1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

EnumSet
use wasmer_enumset::EnumSet;

Creates an enum set and checks membership.

use wasmer_enumset::EnumSet; #[derive(EnumSetType)] pub enum MyEnum { A, B, C } fn main() { let set = EnumSet::from(MyEnum::A | MyEnum::C); println!("Contains A: {}", set.contains(MyEnum::A)); }
Debug
Known issues
gotchaThis is a fork; may not be updated if upstream syn issue is fixed.
fix
Consider using the original `enumset` crate if the issue is resolved.
affects: *
Upgrade
Version history
1.0.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
wasmer-enumset — cargo add wasmer-enumset · libregistry