mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2026-09-18 05:16:44 +02:00
remove generic from Namespace
This commit is contained in:
parent
b7f4d55e1d
commit
1f54140759
3 changed files with 9 additions and 9 deletions
|
|
@ -163,9 +163,9 @@ impl Sizer {
|
|||
$state: &S, $output: &mut O, $expr: &str
|
||||
) -> Perhaps<XYWH<O::Unit>> where
|
||||
S: Interpret<O, Option<XYWH<O::Unit>>>
|
||||
+ for<'b> Namespace<'b, bool>
|
||||
+ for<'b> Namespace<'b, O::Unit>
|
||||
+ for<'b> Namespace<'b, Option<O::Unit>>
|
||||
+ Namespace<bool>
|
||||
+ Namespace<O::Unit>
|
||||
+ Namespace<Option<O::Unit>>
|
||||
$body
|
||||
}
|
||||
}
|
||||
|
|
@ -177,10 +177,10 @@ impl Sizer {
|
|||
$state: &S, $output: &mut Tui, $expr: &str
|
||||
) -> Perhaps<XYWH<u16>> where
|
||||
S: Interpret<Tui, Option<XYWH<u16>>>
|
||||
+ for<'b> Namespace<'b, bool>
|
||||
+ for<'b> Namespace<'b, u16>
|
||||
+ for<'b> Namespace<'b, Option<u16>>
|
||||
+ for<'b> Namespace<'b, Color>
|
||||
+ Namespace<bool>
|
||||
+ Namespace<u16>
|
||||
+ Namespace<Option<u16>>
|
||||
+ Namespace<Color>
|
||||
$body
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ fn_kw_layout_tui!(kw_tui_bg |state, output, expr| {
|
|||
});
|
||||
|
||||
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>
|
||||
{
|
||||
if let Some(expr) = src.expr()? {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue