Introduce EventAppendable
This commit is contained in:
@@ -54,6 +54,10 @@ pub enum ScalarType {
|
||||
BOOL,
|
||||
}
|
||||
|
||||
pub trait HasScalarType {
|
||||
fn scalar_type(&self) -> ScalarType;
|
||||
}
|
||||
|
||||
impl ScalarType {
|
||||
pub fn from_dtype_index(ix: u8) -> Result<Self, Error> {
|
||||
use ScalarType::*;
|
||||
@@ -331,6 +335,10 @@ pub enum Shape {
|
||||
Wave(u32),
|
||||
}
|
||||
|
||||
pub trait HasShape {
|
||||
fn shape(&self) -> Shape;
|
||||
}
|
||||
|
||||
pub mod timeunits {
|
||||
pub const MU: u64 = 1000;
|
||||
pub const MS: u64 = MU * 1000;
|
||||
|
||||
Reference in New Issue
Block a user