tui-lipan 0.1.0

Opinionated, component-based TUI framework for Rust - declarative components, reconciliation, layout engine, focus, overlays, and rich widgets on top of ratatui.
Documentation
1
2
3
4
5
6
7
//! Typed context value marker trait.

/// Values that can be provided through `ContextProvider<T>` and consumed via
/// `Context::use_context::<T>()`.
pub trait ContextValue: Clone + PartialEq + 'static {}

impl<T> ContextValue for T where T: Clone + PartialEq + 'static {}