feat: add general signal types
This commit is contained in:
parent
cde8cb24e5
commit
22d19154af
5 changed files with 461 additions and 1 deletions
|
|
@ -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>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue