pub enum LayoutTree {
Leaf {
surface_id: SurfaceId,
},
Split {
axis: Axis,
children: Vec<LayoutTree>,
weights: Vec<f64>,
},
Tabs {
active_id: SurfaceId,
children: Vec<SurfaceId>,
},
Freeform {
surface_id: SurfaceId,
},
}Expand description
Authoritative layout produced by the Host (output), referencing surfaces only by id. Overlay/float surfaces never appear here.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for LayoutTree
impl Clone for LayoutTree
Source§fn clone(&self) -> LayoutTree
fn clone(&self) -> LayoutTree
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 moreSource§impl Debug for LayoutTree
impl Debug for LayoutTree
Source§impl<'de> Deserialize<'de> for LayoutTree
impl<'de> Deserialize<'de> for LayoutTree
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
Source§impl PartialEq for LayoutTree
impl PartialEq for LayoutTree
Source§fn eq(&self, other: &LayoutTree) -> bool
fn eq(&self, other: &LayoutTree) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LayoutTree
impl Serialize for LayoutTree
impl StructuralPartialEq for LayoutTree
Auto Trait Implementations§
impl Freeze for LayoutTree
impl RefUnwindSafe for LayoutTree
impl Send for LayoutTree
impl Sync for LayoutTree
impl Unpin for LayoutTree
impl UnsafeUnpin for LayoutTree
impl UnwindSafe for LayoutTree
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