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§
- bbool
- Fixed-capacity boolean collections
- bstring
- Enhanced string type with additional functionality
- error
- Error types for the btypes crate
- inf_
bbool - Dynamically-sized boolean collections
- inf_
named_ bools - Dynamically-sized named boolean collections
- named_
bools - Named boolean collections with fixed capacity
- traits
- Common traits for bitwise operations and numeric conversions