Skip to main content

opt_cell

Function opt_cell 

Source
pub fn opt_cell<T: ToString>(v: &Option<T>) -> Cell
Expand description

Helper: a Cell whose text is value.map_or("—", |v| &v.to_string()).