Crates.io | computation-types |
lib.rs | computation-types |
version | |
source | src |
created_at | 2024-12-12 15:38:52.981611 |
updated_at | 2024-12-12 15:38:52.981611 |
description | Types for abstract mathematical computation |
homepage | |
repository | https://github.com/justinlovinger/optimal-rs/tree/master/computation-types |
max_upload_size | |
id | 1481358 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
This package is experimental. Expect frequent updates to the repository with breaking changes and infrequent releases.
Types for abstract mathematical computation.
Note, Documentation is currently lacking. The best way to learn about this framework is to read the tests and see how it is used to implement algorithms in Optimal.
use computation_types::{named_args, val, Run};
let one_plus_one = val!(1) + val!(1);
assert_eq!(one_plus_one.to_string(), "(1 + 1)");
assert_eq!(one_plus_one.run(), 2);
License: MIT