#[non_exhaustive]pub struct SplitGeometry {
pub a: LayoutRect,
pub b: LayoutRect,
pub separator: Option<LayoutRect>,
}Expand description
Where one split’s two children and its separator land inside a parent rect.
Produced by split_geometry. a and b are the rects the children are
rendered into — already shrunk for the separator — and separator is the
1-cell strip between them, or None when the area was too small for one to
be drawn.
#[non_exhaustive] — additional fields may be added in minor releases.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.a: LayoutRectRect for the first (top / left) child.
b: LayoutRectRect for the second (bottom / right) child.
separator: Option<LayoutRect>The 1-cell separator strip between the children, if one fits. Its
orientation follows the split: a single column for SplitDir::Vertical,
a single row for SplitDir::Horizontal.
Trait Implementations§
Source§impl Clone for SplitGeometry
impl Clone for SplitGeometry
Source§fn clone(&self) -> SplitGeometry
fn clone(&self) -> SplitGeometry
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 SplitGeometry
Source§impl Debug for SplitGeometry
impl Debug for SplitGeometry
impl Eq for SplitGeometry
Source§impl PartialEq for SplitGeometry
impl PartialEq for SplitGeometry
impl StructuralPartialEq for SplitGeometry
Auto Trait Implementations§
impl Freeze for SplitGeometry
impl RefUnwindSafe for SplitGeometry
impl Send for SplitGeometry
impl Sync for SplitGeometry
impl Unpin for SplitGeometry
impl UnsafeUnpin for SplitGeometry
impl UnwindSafe for SplitGeometry
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