| 1 | use serderust-analyzer cargo serde 1.0.228 crate/::{Deserializerust-analyzer cargo serde_core 1.0.228 de/Deserialize#, Serializerust-analyzer cargo serde_core 1.0.228 ser/Serialize#}; |
| 2 | |
| 3 | use craterust-analyzer cargo bottom 0.14.9 crate/::{apprust-analyzer cargo bottom 0.14.9 app/::layout_managerrust-analyzer cargo bottom 0.14.9 app/layout_manager/::*, optionsrust-analyzer cargo bottom 0.14.9 options/::OptionResultrust-analyzer cargo bottom 0.14.9 options/error/OptionResult#}; |
| 4 | |
| 5 | /// Represents a row. This has a length of some sort (optional) and a vector |
| 6 | /// of children. |
| 7 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Deserializerust-analyzer cargo serde_derive 1.0.228 Deserialize:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Serializerust-analyzer cargo serde_derive 1.0.228 Serialize:)] |
| 8 | #[cfg_attr(feature = "generate_schema", derive(schemars::JsonSchema))] |
| 9 | #[cfg_attr(test, serde(deny_unknown_fields), derive(PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:))] |
| 10 | #[serde(rename = "row")] |
| 11 | pub struct Rowrust-analyzer cargo bottom 0.14.9 options/config/layout/Row# { |
| 12 | pub ratiorust-analyzer cargo bottom 0.14.9 options/config/layout/Row#ratio.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<u16>, |
| 13 | pub childrust-analyzer cargo bottom 0.14.9 options/config/layout/Row#child.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<RowChildrenrust-analyzer cargo bottom 0.14.9 options/config/layout/RowChildren#>>, |
| 14 | } |
| 15 | |
| 16 | fn new_cpurust-analyzer cargo bottom 0.14.9 options/config/layout/new_cpu().(cpu_left_legend: bool, iter_id: &mut u64) -> BottomColRowrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow# { |
| 17 | let cpu_id = *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().iter_id; |
| 18 | *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().iter_id rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`AddAssign<Self>`]add_assign().+=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`AddAssign<Self>`]add_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`AddAssign<Self>`]add_assign().1; |
| 19 | let legend_id = *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().iter_id; |
| 20 | |
| 21 | if cpu_left_legend { |
| 22 | BottomColRowrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#::newrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomColRow]new().(vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![ |
| 23 | BottomWidgetrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#::newrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidget]new().(BottomWidgetTyperust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#::CpuLegendrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#CpuLegend#, legend_id) |
| 24 | .canvas_handledrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidget]canvas_handled().() |
| 25 | .with_ratio_overriderust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidget]with_ratio_override().(3) |
| 26 | .parent_reflectorrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidget]parent_reflector().(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((WidgetDirectionrust-analyzer cargo bottom 0.14.9 app/layout_manager/WidgetDirection#::Rightrust-analyzer cargo bottom 0.14.9 app/layout_manager/WidgetDirection#Right#, 1))), |
| 27 | BottomWidgetrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#::newrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidget]new().(BottomWidgetTyperust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#::Cpurust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#Cpu#, cpu_id).growrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidget]grow().(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(17)), |
| 28 | ]) |
| 29 | } else { |
| 30 | BottomColRowrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#::newrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomColRow]new().(vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![ |
| 31 | BottomWidgetrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#::newrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidget]new().(BottomWidgetTyperust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#::Cpurust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#Cpu#, cpu_id).growrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidget]grow().(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(17)), |
| 32 | BottomWidgetrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#::newrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidget]new().(BottomWidgetTyperust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#::CpuLegendrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#CpuLegend#, legend_id) |
| 33 | .canvas_handledrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidget]canvas_handled().() |
| 34 | .with_ratio_overriderust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidget]with_ratio_override().(3) |
| 35 | .parent_reflectorrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidget]parent_reflector().(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((WidgetDirectionrust-analyzer cargo bottom 0.14.9 app/layout_manager/WidgetDirection#::Leftrust-analyzer cargo bottom 0.14.9 app/layout_manager/WidgetDirection#Left#, 1))), |
| 36 | ]) |
| 37 | } |
| 38 | .total_widget_ratiorust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomColRow]total_widget_ratio().(20) |
| 39 | } |
| 40 | |
| 41 | fn new_proc_sortrust-analyzer cargo bottom 0.14.9 options/config/layout/new_proc_sort().(sort_id: u64) -> BottomWidgetrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget# { |
| 42 | BottomWidgetrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#::newrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidget]new().(BottomWidgetTyperust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#::ProcSortrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#ProcSort#, sort_id) |
| 43 | .canvas_handledrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidget]canvas_handled().() |
| 44 | .parent_reflectorrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidget]parent_reflector().(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((WidgetDirectionrust-analyzer cargo bottom 0.14.9 app/layout_manager/WidgetDirection#::Rightrust-analyzer cargo bottom 0.14.9 app/layout_manager/WidgetDirection#Right#, 2))) |
| 45 | } |
| 46 | |
| 47 | fn new_procrust-analyzer cargo bottom 0.14.9 options/config/layout/new_proc().(proc_id: u64) -> BottomWidgetrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget# { |
| 48 | BottomWidgetrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#::newrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidget]new().(BottomWidgetTyperust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#::Procrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#Proc#, proc_id).ratiorust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidget]ratio().(2) |
| 49 | } |
| 50 | |
| 51 | fn new_proc_searchrust-analyzer cargo bottom 0.14.9 options/config/layout/new_proc_search().(search_id: u64) -> BottomWidgetrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget# { |
| 52 | BottomWidgetrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#::newrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidget]new().(BottomWidgetTyperust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#::ProcSearchrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#ProcSearch#, search_id) |
| 53 | .parent_reflectorrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidget]parent_reflector().(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((WidgetDirectionrust-analyzer cargo bottom 0.14.9 app/layout_manager/WidgetDirection#::Uprust-analyzer cargo bottom 0.14.9 app/layout_manager/WidgetDirection#Up#, 1))) |
| 54 | } |
| 55 | |
| 56 | impl Rowrust-analyzer cargo bottom 0.14.9 options/config/layout/Row# { |
| 57 | pub fn convert_row_to_bottom_rowrust-analyzer cargo bottom 0.14.9 options/config/layout/impl#[Row]convert_row_to_bottom_row().( |
| 58 | &self, iter_id: &mut u64, total_height_ratio: &mut u16, default_widget_id: &mut u64, |
| 59 | default_widget_type: &Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<BottomWidgetTyperust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#>, default_widget_count: &mut u64, |
| 60 | cpu_left_legend: bool, |
| 61 | ) -> OptionResultrust-analyzer cargo bottom 0.14.9 options/error/OptionResult#<BottomRowrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#> { |
| 62 | // TODO: In the future we want to also add percentages. |
| 63 | // But for MVP, we aren't going to bother. |
| 64 | let row_ratio = self.ratiorust-analyzer cargo bottom 0.14.9 options/config/layout/Row#ratio..unwrap_orrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap_or().(1); |
| 65 | let mut children = Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T>`]new().(); |
| 66 | |
| 67 | *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().total_height_ratio rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u16][`AddAssign<Self>`]add_assign().+=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u16][`AddAssign<Self>`]add_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u16][`AddAssign<Self>`]add_assign().row_ratio; |
| 68 | |
| 69 | let mut total_col_ratio = 0; |
| 70 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(row_children) = &self.childrust-analyzer cargo bottom 0.14.9 options/config/layout/Row#child. { |
| 71 | for row_child in row_children { |
| 72 | match row_child { |
| 73 | RowChildrenrust-analyzer cargo bottom 0.14.9 options/config/layout/RowChildren#::Widgetrust-analyzer cargo bottom 0.14.9 options/config/layout/RowChildren#Widget#(widget) => { |
| 74 | *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().iter_id rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`AddAssign<Self>`]add_assign().+=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`AddAssign<Self>`]add_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`AddAssign<Self>`]add_assign().1; |
| 75 | let width_ratio = widget.ratiorust-analyzer cargo bottom 0.14.9 options/config/layout/FinalWidget#ratio..unwrap_orrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap_or().(1); |
| 76 | total_col_ratio rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u16][`AddAssign<Self>`]add_assign().+=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u16][`AddAssign<Self>`]add_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u16][`AddAssign<Self>`]add_assign().width_ratio; |
| 77 | let widget_type = widget.widget_typerust-analyzer cargo bottom 0.14.9 options/config/layout/FinalWidget#widget_type..parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().::<BottomWidgetTyperust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#>()?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().; |
| 78 | |
| 79 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(default_widget_type_val) = default_widget_type { |
| 80 | if *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().default_widget_type_val rust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidgetType][`PartialEq<Self>`]eq().==rust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidgetType][`PartialEq<Self>`]eq(). rust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidgetType][`PartialEq<Self>`]eq().widget_type && *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().default_widget_count rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u64][`PartialOrd<Self>`]gt().>rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u64][`PartialOrd<Self>`]gt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u64][`PartialOrd<Self>`]gt().0 |
| 81 | { |
| 82 | *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().default_widget_count rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`SubAssign<Self>`]sub_assign().-=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`SubAssign<Self>`]sub_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`SubAssign<Self>`]sub_assign().1; |
| 83 | if *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().default_widget_count rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u64][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u64][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u64][`PartialEq<Self>`]eq().0 { |
| 84 | *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().default_widget_id = *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().iter_id; |
| 85 | } |
| 86 | } |
| 87 | } else { |
| 88 | // Check default flag |
| 89 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(default_widget_flag) = widget.defaultrust-analyzer cargo bottom 0.14.9 options/config/layout/FinalWidget#default. |
| 90 | && default_widget_flag |
| 91 | { |
| 92 | *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().default_widget_id = *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().iter_id; |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | children.pushrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]push().(match widget_type { |
| 97 | BottomWidgetTyperust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#::Cpurust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#Cpu# => { |
| 98 | BottomColrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#::newrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomCol]new().(vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![new_cpurust-analyzer cargo bottom 0.14.9 options/config/layout/new_cpu().(cpu_left_legend, iter_id)]) |
| 99 | .ratiorust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomCol]ratio().(width_ratio) |
| 100 | } |
| 101 | BottomWidgetTyperust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#::Procrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#Proc# => { |
| 102 | let proc_id = *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().iter_id; |
| 103 | let proc_search_id = *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().iter_id rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Add<Self>`]add().1; |
| 104 | *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().iter_id rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`AddAssign<Self>`]add_assign().+=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`AddAssign<Self>`]add_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`AddAssign<Self>`]add_assign().2; |
| 105 | BottomColrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#::newrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomCol]new().(vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![ |
| 106 | BottomColRowrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#::newrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomColRow]new().(vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![ |
| 107 | new_proc_sortrust-analyzer cargo bottom 0.14.9 options/config/layout/new_proc_sort().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().iter_id), |
| 108 | new_procrust-analyzer cargo bottom 0.14.9 options/config/layout/new_proc().(proc_id), |
| 109 | ]) |
| 110 | .growrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomColRow]grow().(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 111 | .total_widget_ratiorust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomColRow]total_widget_ratio().(3), |
| 112 | BottomColRowrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#::newrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomColRow]new().(vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![new_proc_searchrust-analyzer cargo bottom 0.14.9 options/config/layout/new_proc_search().(proc_search_id)]) |
| 113 | .canvas_handledrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomColRow]canvas_handled().(), |
| 114 | ]) |
| 115 | .total_col_row_ratiorust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomCol]total_col_row_ratio().(2) |
| 116 | .ratiorust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomCol]ratio().(width_ratio) |
| 117 | } |
| 118 | _ => BottomColrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#::newrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomCol]new().(vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![BottomColRowrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#::newrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomColRow]new().(vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![BottomWidgetrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#::newrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidget]new().( |
| 119 | widget_type, |
| 120 | *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().iter_id, |
| 121 | )])]) |
| 122 | .ratiorust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomCol]ratio().(width_ratio), |
| 123 | }); |
| 124 | } |
| 125 | RowChildrenrust-analyzer cargo bottom 0.14.9 options/config/layout/RowChildren#::Colrust-analyzer cargo bottom 0.14.9 options/config/layout/RowChildren#Col# { ratiorust-analyzer cargo bottom 0.14.9 options/config/layout/RowChildren#Col#ratio., childrust-analyzer cargo bottom 0.14.9 options/config/layout/RowChildren#Col#child. } => { |
| 126 | let col_width_ratio = ratio.unwrap_orrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap_or().(1); |
| 127 | total_col_ratio rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u16][`AddAssign<Self>`]add_assign().+=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u16][`AddAssign<Self>`]add_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u16][`AddAssign<Self>`]add_assign().col_width_ratio; |
| 128 | let mut total_col_row_ratio = 0; |
| 129 | |
| 130 | let mut col_row_children: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<BottomColRowrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#> = Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T>`]new().(); |
| 131 | |
| 132 | for widget in child { |
| 133 | let widget_type = widget.widget_typerust-analyzer cargo bottom 0.14.9 options/config/layout/FinalWidget#widget_type..parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().::<BottomWidgetTyperust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#>()?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().; |
| 134 | *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().iter_id rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`AddAssign<Self>`]add_assign().+=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`AddAssign<Self>`]add_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`AddAssign<Self>`]add_assign().1; |
| 135 | |
| 136 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(default_widget_type_val) = default_widget_type { |
| 137 | if *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().default_widget_type_val rust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidgetType][`PartialEq<Self>`]eq().==rust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidgetType][`PartialEq<Self>`]eq(). rust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidgetType][`PartialEq<Self>`]eq().widget_type |
| 138 | && *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().default_widget_count rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u64][`PartialOrd<Self>`]gt().>rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u64][`PartialOrd<Self>`]gt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u64][`PartialOrd<Self>`]gt().0 |
| 139 | { |
| 140 | *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().default_widget_count rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`SubAssign<Self>`]sub_assign().-=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`SubAssign<Self>`]sub_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`SubAssign<Self>`]sub_assign().1; |
| 141 | if *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().default_widget_count rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u64][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u64][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u64][`PartialEq<Self>`]eq().0 { |
| 142 | *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().default_widget_id = *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().iter_id; |
| 143 | } |
| 144 | } |
| 145 | } else { |
| 146 | // Check default flag |
| 147 | if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(default_widget_flag) = widget.defaultrust-analyzer cargo bottom 0.14.9 options/config/layout/FinalWidget#default. |
| 148 | && default_widget_flag |
| 149 | { |
| 150 | *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().default_widget_id = *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().iter_id; |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | match widget_type { |
| 155 | BottomWidgetTyperust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#::Cpurust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#Cpu# => { |
| 156 | let col_row_height_ratio = widget.ratiorust-analyzer cargo bottom 0.14.9 options/config/layout/FinalWidget#ratio..unwrap_orrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap_or().(1); |
| 157 | total_col_row_ratio rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u16][`AddAssign<Self>`]add_assign().+=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u16][`AddAssign<Self>`]add_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u16][`AddAssign<Self>`]add_assign().col_row_height_ratio; |
| 158 | |
| 159 | col_row_children.pushrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]push().( |
| 160 | new_cpurust-analyzer cargo bottom 0.14.9 options/config/layout/new_cpu().(cpu_left_legend, iter_id) |
| 161 | .ratiorust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomColRow]ratio().(col_row_height_ratio), |
| 162 | ); |
| 163 | } |
| 164 | BottomWidgetTyperust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#::Procrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#Proc# => { |
| 165 | let col_row_height_ratio = widget.ratiorust-analyzer cargo bottom 0.14.9 options/config/layout/FinalWidget#ratio..unwrap_orrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap_or().(1) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u16][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u16][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u16][`Add<Self>`]add().1; |
| 166 | total_col_row_ratio rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u16][`AddAssign<Self>`]add_assign().+=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u16][`AddAssign<Self>`]add_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u16][`AddAssign<Self>`]add_assign().col_row_height_ratio; |
| 167 | |
| 168 | let proc_id = *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().iter_id; |
| 169 | let proc_search_id = *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().iter_id rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Add<Self>`]add().1; |
| 170 | *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().iter_id rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`AddAssign<Self>`]add_assign().+=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`AddAssign<Self>`]add_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`AddAssign<Self>`]add_assign().2; |
| 171 | col_row_children.pushrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]push().( |
| 172 | BottomColRowrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#::newrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomColRow]new().(vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![ |
| 173 | new_proc_sortrust-analyzer cargo bottom 0.14.9 options/config/layout/new_proc_sort().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().iter_id), |
| 174 | new_procrust-analyzer cargo bottom 0.14.9 options/config/layout/new_proc().(proc_id), |
| 175 | ]) |
| 176 | .ratiorust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomColRow]ratio().(col_row_height_ratio) |
| 177 | .total_widget_ratiorust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomColRow]total_widget_ratio().(3), |
| 178 | ); |
| 179 | col_row_children.pushrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]push().( |
| 180 | BottomColRowrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#::newrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomColRow]new().(vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![new_proc_searchrust-analyzer cargo bottom 0.14.9 options/config/layout/new_proc_search().(proc_search_id)]) |
| 181 | .canvas_handledrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomColRow]canvas_handled().(), |
| 182 | ); |
| 183 | } |
| 184 | _ => { |
| 185 | let col_row_height_ratio = widget.ratiorust-analyzer cargo bottom 0.14.9 options/config/layout/FinalWidget#ratio..unwrap_orrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap_or().(1); |
| 186 | total_col_row_ratio rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u16][`AddAssign<Self>`]add_assign().+=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u16][`AddAssign<Self>`]add_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u16][`AddAssign<Self>`]add_assign().col_row_height_ratio; |
| 187 | |
| 188 | col_row_children.pushrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]push().( |
| 189 | BottomColRowrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#::newrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomColRow]new().(vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![BottomWidgetrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#::newrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomWidget]new().( |
| 190 | widget_type, |
| 191 | *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().iter_id, |
| 192 | )]) |
| 193 | .ratiorust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomColRow]ratio().(col_row_height_ratio), |
| 194 | ) |
| 195 | } |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | children.pushrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]push().( |
| 200 | BottomColrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#::newrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomCol]new().(col_row_children) |
| 201 | .total_col_row_ratiorust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomCol]total_col_row_ratio().(total_col_row_ratio) |
| 202 | .ratiorust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomCol]ratio().(col_width_ratio), |
| 203 | ); |
| 204 | } |
| 205 | } |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(BottomRowrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#::newrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomRow]new().(children) |
| 210 | .total_col_ratiorust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomRow]total_col_ratio().(total_col_ratio) |
| 211 | .ratiorust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomRow]ratio().(row_ratio)) |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | /// Represents a child of a Row - either a Col (column) or a FinalWidget. |
| 216 | /// |
| 217 | /// A Col can also have an optional length and children. We only allow columns |
| 218 | /// to have FinalWidgets as children, lest we get some amount of mutual |
| 219 | /// recursion between Row and Col. |
| 220 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Deserializerust-analyzer cargo serde_derive 1.0.228 Deserialize:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Serializerust-analyzer cargo serde_derive 1.0.228 Serialize:)] |
| 221 | #[cfg_attr(feature = "generate_schema", derive(schemars::JsonSchema))] |
| 222 | #[serde(untagged)] |
| 223 | #[cfg_attr(test, serde(deny_unknown_fields), derive(PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:))] |
| 224 | pub enum RowChildrenrust-analyzer cargo bottom 0.14.9 options/config/layout/RowChildren# { |
| 225 | Widgetrust-analyzer cargo bottom 0.14.9 options/config/layout/RowChildren#Widget#(FinalWidgetrust-analyzer cargo bottom 0.14.9 options/config/layout/FinalWidget#), |
| 226 | Colrust-analyzer cargo bottom 0.14.9 options/config/layout/RowChildren#Col# { |
| 227 | ratiorust-analyzer cargo bottom 0.14.9 options/config/layout/RowChildren#Col#ratio.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<u16>, |
| 228 | childrust-analyzer cargo bottom 0.14.9 options/config/layout/RowChildren#Col#child.: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<FinalWidgetrust-analyzer cargo bottom 0.14.9 options/config/layout/FinalWidget#>, |
| 229 | }, |
| 230 | } |
| 231 | |
| 232 | /// Represents a widget. |
| 233 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Deserializerust-analyzer cargo serde_derive 1.0.228 Deserialize:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Serializerust-analyzer cargo serde_derive 1.0.228 Serialize:)] |
| 234 | #[cfg_attr(feature = "generate_schema", derive(schemars::JsonSchema))] |
| 235 | #[cfg_attr(test, serde(deny_unknown_fields), derive(PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:))] |
| 236 | pub struct FinalWidgetrust-analyzer cargo bottom 0.14.9 options/config/layout/FinalWidget# { |
| 237 | pub ratiorust-analyzer cargo bottom 0.14.9 options/config/layout/FinalWidget#ratio.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<u16>, |
| 238 | #[serderust-analyzer cargo serde_derive 1.0.228 serde:(rename = "type")] |
| 239 | pub widget_typerust-analyzer cargo bottom 0.14.9 options/config/layout/FinalWidget#widget_type.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, |
| 240 | pub defaultrust-analyzer cargo bottom 0.14.9 options/config/layout/FinalWidget#default.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 241 | } |
| 242 | |
| 243 | #[cfg(test)] |
| 244 | mod testrust-analyzer cargo bottom 0.14.9 options/config/layout/test/ { |
| 245 | use toml_editrust-analyzer cargo toml_edit 0.25.12+spec-1.1.0 crate/::derust-analyzer cargo toml_edit 0.25.12+spec-1.1.0 de/::from_strrust-analyzer cargo toml_edit 0.25.12+spec-1.1.0 de/from_str().; |
| 246 | |
| 247 | use superrust-analyzer cargo bottom 0.14.9 options/config/layout/::*; |
| 248 | use craterust-analyzer cargo bottom 0.14.9 crate/::{ |
| 249 | constantsrust-analyzer cargo bottom 0.14.9 constants/::{DEFAULT_LAYOUTrust-analyzer cargo bottom 0.14.9 constants/DEFAULT_LAYOUT., DEFAULT_WIDGET_IDrust-analyzer cargo bottom 0.14.9 constants/DEFAULT_WIDGET_ID.}, |
| 250 | optionsrust-analyzer cargo bottom 0.14.9 options/::Configrust-analyzer cargo bottom 0.14.9 options/config/Config#, |
| 251 | }; |
| 252 | |
| 253 | const PROC_LAYOUTrust-analyzer cargo bottom 0.14.9 options/config/layout/test/PROC_LAYOUT.: &str = r#" |
| 254 | [[row]] |
| 255 | [[row.child]] |
| 256 | type="proc" |
| 257 | [[row]] |
| 258 | [[row.child]] |
| 259 | type="proc" |
| 260 | [[row.child]] |
| 261 | type="proc" |
| 262 | [[row]] |
| 263 | [[row.child]] |
| 264 | type="proc" |
| 265 | [[row.child]] |
| 266 | type="proc" |
| 267 | "#; |
| 268 | |
| 269 | fn test_create_layoutrust-analyzer cargo bottom 0.14.9 options/config/layout/test/test_create_layout().( |
| 270 | rows: &[Rowrust-analyzer cargo bottom 0.14.9 options/config/layout/Row#], default_widget_id: u64, default_widget_type: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<BottomWidgetTyperust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#>, |
| 271 | default_widget_count: u64, left_legend: bool, |
| 272 | ) -> BottomLayoutrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout# { |
| 273 | let mut iter_id = 0; // A lazy way of forcing unique IDs *shrugs* |
| 274 | let mut total_height_ratio = 0; |
| 275 | let mut default_widget_count = default_widget_count; |
| 276 | let mut default_widget_id = default_widget_id; |
| 277 | |
| 278 | let mut ret_bottom_layout = BottomLayoutrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout# { |
| 279 | rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.: rows |
| 280 | .iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() |
| 281 | .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|row| { |
| 282 | row.convert_row_to_bottom_rowrust-analyzer cargo bottom 0.14.9 options/config/layout/impl#[Row]convert_row_to_bottom_row().( |
| 283 | &mut iter_id, |
| 284 | &mut total_height_ratio, |
| 285 | &mut default_widget_id, |
| 286 | &default_widget_type, |
| 287 | &mut default_widget_count, |
| 288 | left_legend, |
| 289 | ) |
| 290 | }) |
| 291 | .collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().::<OptionResultrust-analyzer cargo bottom 0.14.9 options/error/OptionResult#<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<_>>>() |
| 292 | .unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(), |
| 293 | total_row_height_ratiorust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#total_row_height_ratio.: total_height_ratio, |
| 294 | }; |
| 295 | ret_bottom_layout.get_movement_mappingsrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomLayout]get_movement_mappings().(); |
| 296 | |
| 297 | ret_bottom_layout |
| 298 | } |
| 299 | |
| 300 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 301 | /// Tests the default setup. |
| 302 | fn test_default_movementrust-analyzer cargo bottom 0.14.9 options/config/layout/test/test_default_movement().() { |
| 303 | let rows = from_strrust-analyzer cargo toml_edit 0.25.12+spec-1.1.0 de/from_str().::<Configrust-analyzer cargo bottom 0.14.9 options/config/Config#>(DEFAULT_LAYOUTrust-analyzer cargo bottom 0.14.9 constants/DEFAULT_LAYOUT.).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().().rowrust-analyzer cargo bottom 0.14.9 options/config/Config#row..unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap().(); |
| 304 | let ret_bottom_layout = test_create_layoutrust-analyzer cargo bottom 0.14.9 options/config/layout/test/test_create_layout().(&rows, DEFAULT_WIDGET_IDrust-analyzer cargo bottom 0.14.9 constants/DEFAULT_WIDGET_ID., Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, 1, false); |
| 305 | |
| 306 | // Simple tests for the top CPU widget |
| 307 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 308 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..down_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#down_neighbour., |
| 309 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(3) |
| 310 | ); |
| 311 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 312 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..right_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#right_neighbour., |
| 313 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(2) |
| 314 | ); |
| 315 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 316 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..left_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#left_neighbour., |
| 317 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 318 | ); |
| 319 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 320 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..up_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#up_neighbour., |
| 321 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 322 | ); |
| 323 | |
| 324 | // Test CPU legend |
| 325 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 326 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..down_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#down_neighbour., |
| 327 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(4) |
| 328 | ); |
| 329 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 330 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..right_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#right_neighbour., |
| 331 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 332 | ); |
| 333 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 334 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..left_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#left_neighbour., |
| 335 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(1) |
| 336 | ); |
| 337 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 338 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..up_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#up_neighbour., |
| 339 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 340 | ); |
| 341 | |
| 342 | // Test memory->temp, temp->disk, disk->memory mappings |
| 343 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 344 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..right_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#right_neighbour., |
| 345 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(4) |
| 346 | ); |
| 347 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 348 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..down_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#down_neighbour., |
| 349 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(5) |
| 350 | ); |
| 351 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 352 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..left_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#left_neighbour., |
| 353 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(3) |
| 354 | ); |
| 355 | |
| 356 | // Test disk -> processes, processes -> process sort, process sort -> network |
| 357 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 358 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..down_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#down_neighbour., |
| 359 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(7) |
| 360 | ); |
| 361 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 362 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..left_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#left_neighbour., |
| 363 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(9) |
| 364 | ); |
| 365 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 366 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..left_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#left_neighbour., |
| 367 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(6) |
| 368 | ); |
| 369 | } |
| 370 | |
| 371 | #[cfg(feature = "battery")] |
| 372 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 373 | /// Tests battery movement in the default setup. |
| 374 | fn test_default_battery_movementrust-analyzer cargo bottom 0.14.9 options/config/layout/test/test_default_battery_movement().() { |
| 375 | use craterust-analyzer cargo bottom 0.14.9 crate/::constantsrust-analyzer cargo bottom 0.14.9 constants/::DEFAULT_BATTERY_LAYOUTrust-analyzer cargo bottom 0.14.9 constants/DEFAULT_BATTERY_LAYOUT.; |
| 376 | |
| 377 | let rows = from_strrust-analyzer cargo toml_edit 0.25.12+spec-1.1.0 de/from_str().::<Configrust-analyzer cargo bottom 0.14.9 options/config/Config#>(DEFAULT_BATTERY_LAYOUTrust-analyzer cargo bottom 0.14.9 constants/DEFAULT_BATTERY_LAYOUT.) |
| 378 | .unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().() |
| 379 | .rowrust-analyzer cargo bottom 0.14.9 options/config/Config#row. |
| 380 | .unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap().(); |
| 381 | let ret_bottom_layout = test_create_layoutrust-analyzer cargo bottom 0.14.9 options/config/layout/test/test_create_layout().(&rows, DEFAULT_WIDGET_IDrust-analyzer cargo bottom 0.14.9 constants/DEFAULT_WIDGET_ID., Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, 1, false); |
| 382 | |
| 383 | // Simple tests for the top CPU widget |
| 384 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 385 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..down_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#down_neighbour., |
| 386 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(4) |
| 387 | ); |
| 388 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 389 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..right_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#right_neighbour., |
| 390 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(2) |
| 391 | ); |
| 392 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 393 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..left_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#left_neighbour., |
| 394 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 395 | ); |
| 396 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 397 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..up_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#up_neighbour., |
| 398 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 399 | ); |
| 400 | |
| 401 | // Test CPU legend |
| 402 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 403 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..down_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#down_neighbour., |
| 404 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(5) |
| 405 | ); |
| 406 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 407 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..right_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#right_neighbour., |
| 408 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(3) |
| 409 | ); |
| 410 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 411 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..left_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#left_neighbour., |
| 412 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(1) |
| 413 | ); |
| 414 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 415 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..up_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#up_neighbour., |
| 416 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 417 | ); |
| 418 | } |
| 419 | |
| 420 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 421 | /// Tests using cpu_left_legend. |
| 422 | fn test_cpu_left_legendrust-analyzer cargo bottom 0.14.9 options/config/layout/test/test_cpu_left_legend().() { |
| 423 | let rows = from_strrust-analyzer cargo toml_edit 0.25.12+spec-1.1.0 de/from_str().::<Configrust-analyzer cargo bottom 0.14.9 options/config/Config#>(DEFAULT_LAYOUTrust-analyzer cargo bottom 0.14.9 constants/DEFAULT_LAYOUT.).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().().rowrust-analyzer cargo bottom 0.14.9 options/config/Config#row..unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap().(); |
| 424 | let ret_bottom_layout = test_create_layoutrust-analyzer cargo bottom 0.14.9 options/config/layout/test/test_create_layout().(&rows, DEFAULT_WIDGET_IDrust-analyzer cargo bottom 0.14.9 constants/DEFAULT_WIDGET_ID., Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, 1, true); |
| 425 | |
| 426 | // Legend |
| 427 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 428 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..down_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#down_neighbour., |
| 429 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(3) |
| 430 | ); |
| 431 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 432 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..right_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#right_neighbour., |
| 433 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(1) |
| 434 | ); |
| 435 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 436 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..left_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#left_neighbour., |
| 437 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 438 | ); |
| 439 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 440 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..up_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#up_neighbour., |
| 441 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 442 | ); |
| 443 | |
| 444 | // Widget |
| 445 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 446 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..down_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#down_neighbour., |
| 447 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(3) |
| 448 | ); |
| 449 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 450 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..right_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#right_neighbour., |
| 451 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 452 | ); |
| 453 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 454 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..left_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#left_neighbour., |
| 455 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(2) |
| 456 | ); |
| 457 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 458 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..up_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#up_neighbour., |
| 459 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 460 | ); |
| 461 | } |
| 462 | |
| 463 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 464 | /// Tests explicit default widget. |
| 465 | fn test_default_widget_in_layoutrust-analyzer cargo bottom 0.14.9 options/config/layout/test/test_default_widget_in_layout().() { |
| 466 | let proc_layout = r#" |
| 467 | [[row]] |
| 468 | [[row.child]] |
| 469 | type="proc" |
| 470 | [[row]] |
| 471 | [[row.child]] |
| 472 | type="proc" |
| 473 | [[row.child]] |
| 474 | type="proc" |
| 475 | [[row]] |
| 476 | [[row.child]] |
| 477 | type="proc" |
| 478 | default=true |
| 479 | [[row.child]] |
| 480 | type="proc" |
| 481 | "#; |
| 482 | |
| 483 | let rows = from_strrust-analyzer cargo toml_edit 0.25.12+spec-1.1.0 de/from_str().::<Configrust-analyzer cargo bottom 0.14.9 options/config/Config#>(proc_layout).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().().rowrust-analyzer cargo bottom 0.14.9 options/config/Config#row..unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap().(); |
| 484 | let mut iter_id = 0; // A lazy way of forcing unique IDs *shrugs* |
| 485 | let mut total_height_ratio = 0; |
| 486 | let mut default_widget_count = 1; |
| 487 | let mut default_widget_id = DEFAULT_WIDGET_IDrust-analyzer cargo bottom 0.14.9 constants/DEFAULT_WIDGET_ID.; |
| 488 | let default_widget_type = Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#; |
| 489 | let cpu_left_legend = false; |
| 490 | |
| 491 | let mut ret_bottom_layout = BottomLayoutrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout# { |
| 492 | rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.: rows |
| 493 | .iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() |
| 494 | .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|row| { |
| 495 | row.convert_row_to_bottom_rowrust-analyzer cargo bottom 0.14.9 options/config/layout/impl#[Row]convert_row_to_bottom_row().( |
| 496 | &mut iter_id, |
| 497 | &mut total_height_ratio, |
| 498 | &mut default_widget_id, |
| 499 | &default_widget_type, |
| 500 | &mut default_widget_count, |
| 501 | cpu_left_legend, |
| 502 | ) |
| 503 | }) |
| 504 | .collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().::<OptionResultrust-analyzer cargo bottom 0.14.9 options/error/OptionResult#<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<_>>>() |
| 505 | .unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(), |
| 506 | total_row_height_ratiorust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#total_row_height_ratio.: total_height_ratio, |
| 507 | }; |
| 508 | ret_bottom_layout.get_movement_mappingsrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomLayout]get_movement_mappings().(); |
| 509 | |
| 510 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(default_widget_id, 10); |
| 511 | } |
| 512 | |
| 513 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 514 | /// Tests default widget by setting type and count. |
| 515 | fn test_default_widget_by_optionrust-analyzer cargo bottom 0.14.9 options/config/layout/test/test_default_widget_by_option().() { |
| 516 | let rows = from_strrust-analyzer cargo toml_edit 0.25.12+spec-1.1.0 de/from_str().::<Configrust-analyzer cargo bottom 0.14.9 options/config/Config#>(PROC_LAYOUTrust-analyzer cargo bottom 0.14.9 options/config/layout/test/PROC_LAYOUT.).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().().rowrust-analyzer cargo bottom 0.14.9 options/config/Config#row..unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap().(); |
| 517 | let mut iter_id = 0; // A lazy way of forcing unique IDs *shrugs* |
| 518 | let mut total_height_ratio = 0; |
| 519 | let mut default_widget_count = 3; |
| 520 | let mut default_widget_id = DEFAULT_WIDGET_IDrust-analyzer cargo bottom 0.14.9 constants/DEFAULT_WIDGET_ID.; |
| 521 | let default_widget_type = Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(BottomWidgetTyperust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#::Procrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidgetType#Proc#); |
| 522 | let cpu_left_legend = false; |
| 523 | |
| 524 | let mut ret_bottom_layout = BottomLayoutrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout# { |
| 525 | rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.: rows |
| 526 | .iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() |
| 527 | .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|row| { |
| 528 | row.convert_row_to_bottom_rowrust-analyzer cargo bottom 0.14.9 options/config/layout/impl#[Row]convert_row_to_bottom_row().( |
| 529 | &mut iter_id, |
| 530 | &mut total_height_ratio, |
| 531 | &mut default_widget_id, |
| 532 | &default_widget_type, |
| 533 | &mut default_widget_count, |
| 534 | cpu_left_legend, |
| 535 | ) |
| 536 | }) |
| 537 | .collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().::<OptionResultrust-analyzer cargo bottom 0.14.9 options/error/OptionResult#<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<_>>>() |
| 538 | .unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(), |
| 539 | total_row_height_ratiorust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#total_row_height_ratio.: total_height_ratio, |
| 540 | }; |
| 541 | ret_bottom_layout.get_movement_mappingsrust-analyzer cargo bottom 0.14.9 app/layout_manager/impl#[BottomLayout]get_movement_mappings().(); |
| 542 | |
| 543 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(default_widget_id, 7); |
| 544 | } |
| 545 | |
| 546 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 547 | fn test_proc_custom_layoutrust-analyzer cargo bottom 0.14.9 options/config/layout/test/test_proc_custom_layout().() { |
| 548 | let rows = from_strrust-analyzer cargo toml_edit 0.25.12+spec-1.1.0 de/from_str().::<Configrust-analyzer cargo bottom 0.14.9 options/config/Config#>(PROC_LAYOUTrust-analyzer cargo bottom 0.14.9 options/config/layout/test/PROC_LAYOUT.).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().().rowrust-analyzer cargo bottom 0.14.9 options/config/Config#row..unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap().(); |
| 549 | let ret_bottom_layout = test_create_layoutrust-analyzer cargo bottom 0.14.9 options/config/layout/test/test_create_layout().(&rows, DEFAULT_WIDGET_IDrust-analyzer cargo bottom 0.14.9 constants/DEFAULT_WIDGET_ID., Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, 1, false); |
| 550 | |
| 551 | // First proc widget |
| 552 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 553 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..down_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#down_neighbour., |
| 554 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(2) |
| 555 | ); |
| 556 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 557 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..left_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#left_neighbour., |
| 558 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(3) |
| 559 | ); |
| 560 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 561 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..right_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#right_neighbour., |
| 562 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 563 | ); |
| 564 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 565 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..up_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#up_neighbour., |
| 566 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 567 | ); |
| 568 | |
| 569 | // Its search |
| 570 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 571 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..down_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#down_neighbour., |
| 572 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(4) |
| 573 | ); |
| 574 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 575 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..left_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#left_neighbour., |
| 576 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 577 | ); |
| 578 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 579 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..right_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#right_neighbour., |
| 580 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 581 | ); |
| 582 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 583 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..up_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#up_neighbour., |
| 584 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(1) |
| 585 | ); |
| 586 | |
| 587 | // Its sort |
| 588 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 589 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..down_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#down_neighbour., |
| 590 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(2) |
| 591 | ); |
| 592 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 593 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..left_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#left_neighbour., |
| 594 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 595 | ); |
| 596 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 597 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..right_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#right_neighbour., |
| 598 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(1) |
| 599 | ); |
| 600 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 601 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..up_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#up_neighbour., |
| 602 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 603 | ); |
| 604 | |
| 605 | // Let us now test the second row's first widget... |
| 606 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 607 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..down_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#down_neighbour., |
| 608 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(5) |
| 609 | ); |
| 610 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 611 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..left_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#left_neighbour., |
| 612 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(6) |
| 613 | ); |
| 614 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 615 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..right_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#right_neighbour., |
| 616 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(9) |
| 617 | ); |
| 618 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 619 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..up_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#up_neighbour., |
| 620 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(2) |
| 621 | ); |
| 622 | |
| 623 | // Sort |
| 624 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 625 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..down_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#down_neighbour., |
| 626 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(5) |
| 627 | ); |
| 628 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 629 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..left_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#left_neighbour., |
| 630 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 631 | ); |
| 632 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 633 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..right_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#right_neighbour., |
| 634 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(4) |
| 635 | ); |
| 636 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 637 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..up_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#up_neighbour., |
| 638 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(2) |
| 639 | ); |
| 640 | |
| 641 | // Search |
| 642 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 643 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..down_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#down_neighbour., |
| 644 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(10) |
| 645 | ); |
| 646 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 647 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..left_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#left_neighbour., |
| 648 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 649 | ); |
| 650 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 651 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..right_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#right_neighbour., |
| 652 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(8) |
| 653 | ); |
| 654 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 655 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..up_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#up_neighbour., |
| 656 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(4) |
| 657 | ); |
| 658 | |
| 659 | // Third row, second |
| 660 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 661 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..down_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#down_neighbour., |
| 662 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(14) |
| 663 | ); |
| 664 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 665 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..left_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#left_neighbour., |
| 666 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(15) |
| 667 | ); |
| 668 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 669 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..right_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#right_neighbour., |
| 670 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 671 | ); |
| 672 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 673 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..up_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#up_neighbour., |
| 674 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(8) |
| 675 | ); |
| 676 | |
| 677 | // Sort |
| 678 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 679 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..down_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#down_neighbour., |
| 680 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(14) |
| 681 | ); |
| 682 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 683 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..left_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#left_neighbour., |
| 684 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(10) |
| 685 | ); |
| 686 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 687 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..right_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#right_neighbour., |
| 688 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(13) |
| 689 | ); |
| 690 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 691 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..up_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#up_neighbour., |
| 692 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(8) |
| 693 | ); |
| 694 | |
| 695 | // Search |
| 696 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 697 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..down_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#down_neighbour., |
| 698 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 699 | ); |
| 700 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 701 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..left_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#left_neighbour., |
| 702 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(11) |
| 703 | ); |
| 704 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 705 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..right_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#right_neighbour., |
| 706 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 707 | ); |
| 708 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 709 | ret_bottom_layout.rowsrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomLayout#rows.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomCol#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..childrenrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomColRow#children.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..up_neighbourrust-analyzer cargo bottom 0.14.9 app/layout_manager/BottomWidget#up_neighbour., |
| 710 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(13) |
| 711 | ); |
| 712 | } |
| 713 | } |