Crates.io | langis |
lib.rs | langis |
version | 0.1.1 |
source | src |
created_at | 2020-09-18 18:50:08.305394 |
updated_at | 2020-09-18 19:11:43.902719 |
description | 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. |
homepage | |
repository | https://github.com/gymore-z/langis |
max_upload_size | |
id | 290202 |
size | 47,833 |
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.
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);
}