🐛 (table): Añade conversión From<C> a Cell
This commit is contained in:
parent
5842ea6efc
commit
3930499664
1 changed files with 7 additions and 0 deletions
|
|
@ -112,3 +112,10 @@ impl From<Lc> for Cell {
|
|||
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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue