mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
egui_extras: use slice instead of vec ref
This commit is contained in:
@@ -361,7 +361,7 @@ impl<'a> TableBody<'a> {
|
|||||||
/// This is primarily meant for use with [`TableBody::heterogeneous_rows`] in cases where row
|
/// This is primarily meant for use with [`TableBody::heterogeneous_rows`] in cases where row
|
||||||
/// heights are expected to according to the width of one or more cells -- for example, if text
|
/// heights are expected to according to the width of one or more cells -- for example, if text
|
||||||
/// is wrapped rather than clippped within the cell.
|
/// is wrapped rather than clippped within the cell.
|
||||||
pub fn widths(&self) -> &Vec<f32> {
|
pub fn widths(&self) -> &[f32] {
|
||||||
&self.widths
|
&self.widths
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user