feat: add general signal types

This commit is contained in:
Anand Balakrishnan 2023-03-22 13:40:13 -07:00
parent cde8cb24e5
commit 22d19154af
No known key found for this signature in database
5 changed files with 461 additions and 1 deletions

View file

@ -1,4 +1,7 @@
pub mod expr;
pub mod signals;
use std::time::Duration;
use thiserror::Error;
@ -8,8 +11,13 @@ pub enum Error {
IdentifierRedeclaration,
#[error("insufficient number of arguments")]
IncompleteArgs,
#[error(
"trying to create a non-monotonically signal, signal end time ({end_time:?}) > sample time point \
({current_sample:?})"
)]
NonMonotonicSignal { end_time: Duration, current_sample: Duration },
}
pub type ArgusError = Error;
pub type ArgusResult<T> = Result<T, Error>;