eyros 4.6.2

multi-dimensional interval database
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::{QTrace,Point,TreeRef};
use async_std::channel::Sender;

pub struct JsTrace<P: Point> {
  rpc: Sender<TreeRef<P>>,
}

impl<P> JsTrace<P> where P: Point {
  pub fn new(rpc: Sender<TreeRef<P>>) -> Self {
    Self { rpc }
  }
}

impl<P> QTrace<P> for JsTrace<P> where P: Point {
  fn trace(&mut self, tr: TreeRef<P>) {
    self.rpc.try_send(tr).unwrap();
  }
}