feat: left right movement done

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-05-02 23:47:47 +02:00
parent d7e21a256d
commit 9de5e6bbff
11 changed files with 522 additions and 224 deletions

View File

@@ -0,0 +1,24 @@
use std::{ops::Deref, sync::Arc};
use hyperlog_core::state::State;
#[derive(Clone)]
pub struct SharedState {
state: Arc<State>,
}
impl Deref for SharedState {
type Target = State;
fn deref(&self) -> &Self::Target {
&self.state
}
}
impl From<State> for SharedState {
fn from(value: State) -> Self {
Self {
state: Arc::new(value),
}
}
}