Udate deps, backend list for plain node

This commit is contained in:
Dominik Werder
2024-06-12 13:43:28 +02:00
parent 437e6d0d76
commit 03e8ac7a70
35 changed files with 1459 additions and 343 deletions

View File

@@ -128,7 +128,7 @@ pub trait Events:
fn as_time_binnable_ref(&self) -> &dyn TimeBinnable;
fn as_time_binnable_mut(&mut self) -> &mut dyn TimeBinnable;
fn verify(&self) -> bool;
fn output_info(&self);
fn output_info(&self) -> String;
fn as_collectable_mut(&mut self) -> &mut dyn Collectable;
fn as_collectable_with_default_ref(&self) -> &dyn Collectable;
fn as_collectable_with_default_mut(&mut self) -> &mut dyn Collectable;
@@ -190,7 +190,7 @@ impl Events for Box<dyn Events> {
Events::verify(self.as_ref())
}
fn output_info(&self) {
fn output_info(&self) -> String {
Events::output_info(self.as_ref())
}

View File

@@ -1,5 +1,7 @@
use crate::container::ByteEstimate;
use crate::subfr::SubFrId;
use netpod::EnumVariant;
use netpod::StringFix;
use serde::Serialize;
use std::fmt;
use std::ops;
@@ -247,3 +249,49 @@ impl_scalar_ops!(
"string",
16
);
impl ByteEstimate for EnumVariant {
fn byte_estimate(&self) -> u64 {
12
}
}
impl AsPrimF32 for EnumVariant {
fn as_prim_f32_b(&self) -> f32 {
0.
}
}
impl ScalarOps for EnumVariant {
fn scalar_type_name() -> &'static str {
"enumvariant"
}
fn zero_b() -> Self {
EnumVariant::empty()
}
fn equal_slack(&self, rhs: &Self) -> bool {
self == rhs
}
fn add(&mut self, _rhs: &Self) {
// undefined so far
}
fn div(&mut self, _n: usize) {
// undefined so far
}
fn find_vec_min(a: &Vec<Self>) -> Option<Self> {
todo!()
}
fn find_vec_max(a: &Vec<Self>) -> Option<Self> {
todo!()
}
fn avg_vec(a: &Vec<Self>) -> Option<Self> {
todo!()
}
}

View File

@@ -1,3 +1,5 @@
use netpod::EnumVariant;
pub trait SubFrId {
const SUB: u32;
}
@@ -49,3 +51,7 @@ impl SubFrId for bool {
impl SubFrId for String {
const SUB: u32 = 0x0e;
}
impl SubFrId for EnumVariant {
const SUB: u32 = 0x0f;
}