#[non_exhaustive]pub enum DockNode {
Tabs {
panels: Vec<String>,
active: usize,
},
Split {
axis: Axis,
children: Vec<DockChild>,
},
}Expand description
A part of the tree: tabs, or parts side by side or stacked.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl DockNode
impl DockNode
Sourcepub fn tabs<S: Into<String>>(panels: impl IntoIterator<Item = S>) -> Self
pub fn tabs<S: Into<String>>(panels: impl IntoIterator<Item = S>) -> Self
A group of these panels, with the first one showing.
Sourcepub fn horizontal(children: impl IntoIterator<Item = DockNode>) -> Self
pub fn horizontal(children: impl IntoIterator<Item = DockNode>) -> Self
These parts side by side, in equal shares.
Sourcepub fn vertical(children: impl IntoIterator<Item = DockNode>) -> Self
pub fn vertical(children: impl IntoIterator<Item = DockNode>) -> Self
These parts stacked, in equal shares.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DockNode
impl<'de> Deserialize<'de> for DockNode
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 DockNode
Auto Trait Implementations§
impl Freeze for DockNode
impl RefUnwindSafe for DockNode
impl Send for DockNode
impl Sync for DockNode
impl Unpin for DockNode
impl UnsafeUnpin for DockNode
impl UnwindSafe for DockNode
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