ratatui-kit 0.6.0

A framework for building interactive terminal user interfaces with ratatui
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use any_key::AnyHash;
use std::{fmt::Debug, hash::Hash, sync::Arc};

#[derive(Clone, PartialEq, Eq, Hash, Debug)]
pub struct ElementKey(Arc<Box<dyn AnyHash + Send + Sync>>);

impl ElementKey {
    pub fn new<T>(key: T) -> Self
    where
        T: Debug + Send + Sync + AnyHash,
    {
        Self(Arc::new(Box::new(key)))
    }
}