pub enum Axis {
Vertical,
Horizontal,
}Expand description
Which way a branch was cut.
Variants§
Implementations§
Source§impl Axis
impl Axis
Sourcefn longer(rect: Rect) -> Self
fn longer(rect: Rect) -> Self
The cut a box would get from Tiling::insert: across whichever side
is longer, so the split follows the shape of the space being divided.
Trait Implementations§
impl Copy for Axis
impl Eq for Axis
impl StructuralPartialEq for Axis
Auto Trait Implementations§
impl Freeze for Axis
impl RefUnwindSafe for Axis
impl Send for Axis
impl Sync for Axis
impl Unpin for Axis
impl UnsafeUnpin for Axis
impl UnwindSafe for Axis
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