feat: update examples for tui

This commit is contained in:
Jonathan Kelley committed 2022-03-09 13:36:30 -05:00
1 parent 58a20913b6
commit 50d509688d
17 files changed
+119 -241

No files matched your search

+6
View File
@@ -310,6 +310,12 @@ impl<'a, T: 'static + Display> std::fmt::Display for UseState<T> {
}
}
impl<'a, T: std::fmt::Binary> std::fmt::Binary for UseState<T> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{:b}", self.current_val.as_ref())
}
}
impl<T: PartialEq> PartialEq<T> for UseState<T> {
fn eq(&self, other: &T) -> bool {
self.current_val.as_ref() == other