Expand description
§Introduction
linearity
is a constant-accelerated crate for various operations commonly found in branchless programming.
The primary trait is Linearity
, it provides facilities for clear and concise branchless programming.
See the totality of the crate documentation for more information.
§Usage
To use linearity
in your project, add the following lines to your Cargo.toml
file:
[dependencies]
linearity = "1"
Then, in your Rust code, you can import and use the crate as follows:
use linearity::Linearity;
For detailed usage examples and API documentation, please refer to the crate documentation.
§Contributing
Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.
§License
This crate is distributed under the terms of the AGPLV3 license. See LICENSE
for more information.
§Acknowledgements
We would like to thank all the contributors to the linearity
crate for their valuable contributions and feedback.
Modules§
- A collection of the most common items that exist in the
linearity
crate. - Abstraction over all primitive types.
Enums§
- Represents a filter that can be either transparent or opaque.
Traits§
- Constant-accelerated trait for various operations commonly found in branchless programming.
- Extension trait for pointers.
- Extension trait for mutable pointers.