langis

Crates.iolangis
lib.rslangis
version0.1.1
sourcesrc
created_at2020-09-18 18:50:08.305394
updated_at2020-09-18 19:11:43.902719
descriptionA signal is a structure that can yield an infinite amount of data. The API is very similar to `std::iter::Iterator` but with the assumption that it will never end.
homepage
repositoryhttps://github.com/gymore-z/langis
max_upload_size
id290202
size47,833
Gymore (gymore-z)

documentation

https://docs.rs/langis/

README

A signal is a structure that can yield an infinite amount of data. The API is very similar to std::iter::Iterator but with the assumption that it will never end.

Example

use langis;

let my_signal = langis::square( langis::constant(0.25) );

loop {
    assert_eq!(my_signal.next(), 1.0);
    assert_eq!(my_signal.next(), 1.0);
    assert_eq!(my_signal.next(), -1.0);
    assert_eq!(my_signal.next(), -1.0);
}
Commit count: 0

cargo fmt