remove generic from Namespace

This commit is contained in:
facile pop culture reference 2026-08-12 11:22:12 +03:00
parent b7f4d55e1d
commit 1f54140759
3 changed files with 9 additions and 9 deletions

2
dizzle

@ -1 +1 @@
Subproject commit 5426dc44f231531758a7e8575117357b55b1a9f5 Subproject commit ab177b0d0d1ccdff0c69f915847be9a23a364663

View file

@ -163,9 +163,9 @@ impl Sizer {
$state: &S, $output: &mut O, $expr: &str $state: &S, $output: &mut O, $expr: &str
) -> Perhaps<XYWH<O::Unit>> where ) -> Perhaps<XYWH<O::Unit>> where
S: Interpret<O, Option<XYWH<O::Unit>>> S: Interpret<O, Option<XYWH<O::Unit>>>
+ for<'b> Namespace<'b, bool> + Namespace<bool>
+ for<'b> Namespace<'b, O::Unit> + Namespace<O::Unit>
+ for<'b> Namespace<'b, Option<O::Unit>> + Namespace<Option<O::Unit>>
$body $body
} }
} }
@ -177,10 +177,10 @@ impl Sizer {
$state: &S, $output: &mut Tui, $expr: &str $state: &S, $output: &mut Tui, $expr: &str
) -> Perhaps<XYWH<u16>> where ) -> Perhaps<XYWH<u16>> where
S: Interpret<Tui, Option<XYWH<u16>>> S: Interpret<Tui, Option<XYWH<u16>>>
+ for<'b> Namespace<'b, bool> + Namespace<bool>
+ for<'b> Namespace<'b, u16> + Namespace<u16>
+ for<'b> Namespace<'b, Option<u16>> + Namespace<Option<u16>>
+ for<'b> Namespace<'b, Color> + Namespace<Color>
$body $body
} }
} }

View file

@ -30,7 +30,7 @@ fn_kw_layout_tui!(kw_tui_bg |state, output, expr| {
}); });
impl Tui { impl Tui {
pub fn eval_color_expr (state: &impl for<'a> Namespace<'a, u8>, src: impl Language) pub fn eval_color_expr (state: &impl Namespace<u8>, src: impl Language)
-> Perhaps<Color> -> Perhaps<Color>
{ {
if let Some(expr) = src.expr()? { if let Some(expr) = src.expr()? {