🐛 (table): Añade conversión From<C> a Cell

This commit is contained in:
Manuel Cillero 2026-08-13 15:29:54 +02:00
parent 5842ea6efc
commit 3930499664

View file

@ -112,3 +112,10 @@ impl From<Lc> for Cell {
Cell::new(label) Cell::new(label)
} }
} }
impl<C: Component> From<C> for Cell {
/// Convierte cualquier componente en una celda; equivale a `Cell::new(component)`.
fn from(component: C) -> Self {
Cell::new(component)
}
}