pub enum Arrangement {
ListDetail {
tabbed: bool,
},
SidebarContent,
}Expand description
How a screen is laid out.
Two, and the second is not a variant of the first. goingson is list-detail, Balanced Breakfast is sidebar plus content, and neither app has a third. The tab group is a modifier rather than a member, because goingson uses it inside the same content region rather than instead of one.
This exists at all because the router has to be able to express a screen rather than only a control. Discovering the arrangement layer missing after the renderers exist is a redesign; naming two now is a morning.
Variants§
ListDetail
A list that chooses what the detail beside it shows.
Fields
§
tabbed: boolWhether the detail side is a Region::TabGroup.
SidebarContent
Navigation down the side, content filling the rest.
Trait Implementations§
Source§impl Clone for Arrangement
impl Clone for Arrangement
Source§fn clone(&self) -> Arrangement
fn clone(&self) -> Arrangement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Arrangement
Source§impl Debug for Arrangement
impl Debug for Arrangement
impl Eq for Arrangement
Source§impl Hash for Arrangement
impl Hash for Arrangement
Source§impl PartialEq for Arrangement
impl PartialEq for Arrangement
impl StructuralPartialEq for Arrangement
Auto Trait Implementations§
impl Freeze for Arrangement
impl RefUnwindSafe for Arrangement
impl Send for Arrangement
impl Sync for Arrangement
impl Unpin for Arrangement
impl UnsafeUnpin for Arrangement
impl UnwindSafe for Arrangement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more