Flexible routing

Another massive refactor to change the way routing works. Now any
column can route anywhere.

Also things are generally just much better and more modular via the
new struct split borrowing technique.

I didn't even try to split this into smaller commits for my sanity.

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-09-11 19:43:41 -07:00
parent b4a8cddc48
commit 36c0971fd9
27 changed files with 973 additions and 963 deletions

13
src/view_state.rs Normal file
View File

@@ -0,0 +1,13 @@
use crate::login_manager::LoginState;
/// Various state for views
#[derive(Default)]
pub struct ViewState {
pub login: LoginState,
}
impl ViewState {
pub fn login_mut(&mut self) -> &mut LoginState {
&mut self.login
}
}