Skip to main content

tui_lipan/core/
context_value.rs

1//! Typed context value marker trait.
2
3/// Values that can be provided through `ContextProvider<T>` and consumed via
4/// `Context::use_context::<T>()`.
5pub trait ContextValue: Clone + PartialEq + 'static {}
6
7impl<T> ContextValue for T where T: Clone + PartialEq + 'static {}