feat!(core): Change Signal to be a sumtype
We want to be able to reason about if a signal is empty, constant, or sampled at compile time without using any trait objects. Moreover, the core Argus library shouldn't care about how it deals with interfacing with other languages like Python. Thus, we remove the need for having an `AnySignal` type and what not.
This commit is contained in:
parent
a6a3805107
commit
4431b79bcd
10 changed files with 442 additions and 966 deletions
|
|
@ -13,6 +13,8 @@ pub enum Error {
|
|||
#[error("insufficient number of arguments")]
|
||||
IncompleteArgs,
|
||||
|
||||
#[error("cannot push value to non-sampled signal")]
|
||||
InvalidPushToSignal,
|
||||
#[error(
|
||||
"trying to create a non-monotonically signal, signal end time ({end_time:?}) > sample time point \
|
||||
({current_sample:?})"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue