Expand description
§btypes - Enhanced Types for Rust
This crate provides enhanced implementations of boolean collections and string types, offering additional functionality beyond the standard library implementations.
§Features
named_bools- Fixed-capacity named boolean collections (8 to 128 bits)bools- Fixed-capacity boolean collections (8 to 128 bits)inf_bools- Dynamically-sized boolean collectionsinf_named_bools- Dynamically-sized named boolean collectionsstrings- Enhanced string type with additional functionality
§Example Usage
use btypes::named_bools::BN128;
use anyhow::Result;
fn main() -> Result<()> {
let mut bools = BN128::new();
bools.set("flag1", true)?;
bools.set("flag2", false)?;
Ok(())
}For more examples, see the individual module documentation.
Modules§
- Fixed-capacity boolean collections
- Enhanced string type with additional functionality
- Error types for the btypes crate
- Dynamically-sized boolean collections
- Dynamically-sized named boolean collections
- Named boolean collections with fixed capacity
- Common traits for bitwise operations and numeric conversions