pub enum Node {
Tabs {
panels: Vec<PanelId>,
active: usize,
},
Split {
vertical: bool,
ratio: f32,
a: Box<Node>,
b: Box<Node>,
},
Grid {
columns: Option<usize>,
col_shares: Vec<f32>,
row_shares: Vec<f32>,
children: Vec<Node>,
},
}Expand description
Tabs, splits and grids of one area.
A row or a column of more than two is saved as splits nested on their
second side (b), each ratio the share of a in its split.
Variants§
Tabs
Panels as tabs; active is the shown one.
Split
Grid
Two or more nodes in rows and columns, row by row.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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