fastperm

Crates.iofastperm
lib.rsfastperm
version1.0.2
sourcesrc
created_at2022-03-12 07:54:20.530988
updated_at2022-03-12 08:12:16.287092
descriptionA dead-simple, extreme fast permission flag system for Rust with no dependencies.
homepage
repositoryhttps://github.com/pan93412/fastperm
max_upload_size
id548662
size16,667
pan93412 (pan93412)

documentation

README

fastperm

A dead-simple, extreme fast permission flag system for Rust with no dependencies.

Usage

use fastperm::{add, rm, check};

// Add a flag to a permission digit.
assert_eq!(add(0, 1), 2);
// Remove a flag from a permission digit.
assert_eq!(rm(2, 1), 0);
// Check if a flag is in a permission digit.
assert!(check(2, 1));

Credit

Authors

Commit count: 15

cargo fmt