xpr

Crates.ioxpr
lib.rsxpr
version0.1.0
sourcesrc
created_at2021-12-21 17:00:02.978978
updated_at2021-12-21 17:00:02.978978
descriptionA general purpose generic expression template library.
homepage
repositoryhttps://github.com/joergbrech/xpr
max_upload_size
id501272
size46,966
Jan Kleinert (joergbrech)

documentation

README

xpr

Disclaimer: This is a toy project that was developed mainly for procrastination purposes.

xpr is a rust library that allows you to use expression templates with your custom type. It is inspired by boost::yap. Expressions can be lazily evaluated and manipulated using a Fold trait.

Example usage

use xpr::*; 

// An expression representing an operation
let y = -Xpr::new(2)*Xpr::new(-21);

// lazy evaluation
assert_eq!(y.eval(), 42);

License

Dual-licensed to be compatible with the Rust project.

Licensed under the Apache License, Version 2.0 or the MIT license, at your option. This file may not be copied, modified, or distributed except according to those terms.

Commit count: 77

cargo fmt