add index to all iter helpers

This commit is contained in:
facile pop culture reference 2026-06-16 14:58:48 +03:00
parent 2dc501c184
commit 29035d0b36
3 changed files with 14 additions and 10 deletions

View file

@ -5,7 +5,7 @@ use super::*;
/// ```
/// /// TODO
/// ```
pub const fn border <T, S: BorderStyle> (on: bool, style: S, draw: impl Draw<Tui>) -> impl Draw<Tui> {
pub const fn border (on: bool, style: impl BorderStyle, draw: impl Draw<Tui>) -> impl Draw<Tui> {
let content = wh_pad(1, 1, draw);
let outline = when(on, thunk(move|to: &mut Tui|{
let XYWH(x, y, w, h) = to.1;