#[non_exhaustive]pub enum DockNode {
Leaf(PanelId),
Split {
axis: SplitAxis,
frac: f32,
first: Box<DockNode>,
second: Box<DockNode>,
},
Tabs {
tabs: Vec<PanelId>,
active: usize,
},
}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
pub fn leaf(panel: PanelId) -> DockNode
pub fn tabs(tabs: impl IntoIterator<Item = PanelId>) -> DockNode
pub fn sanitized_frac(frac: f32) -> f32
pub fn panels(&self) -> Vec<PanelId>
pub fn contains(&self, panel: PanelId) -> bool
pub fn path_to(&self, panel: PanelId) -> Option<Vec<bool>>
Trait Implementations§
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