#[non_exhaustive]pub enum SplitDirection {
Right,
Left,
Down,
Up,
}Expand description
Direction of a Pane::split call.
Named by where the new pane lands relative to the pane being split.
Internally each variant decomposes into an axis and an insertion side
(after / before the target), matching the tmux split-window model.
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.
Right
New pane to the right of the active pane (vertical divider line).
Left
New pane to the left of the active pane (vertical divider line).
Equivalent to tmux split-window -h -b.
Down
New pane below the active pane (horizontal divider line).
Up
New pane above the active pane (horizontal divider line).
Equivalent to tmux split-window -v -b.
Trait Implementations§
Source§impl Clone for SplitDirection
impl Clone for SplitDirection
Source§fn clone(&self) -> SplitDirection
fn clone(&self) -> SplitDirection
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 SplitDirection
Source§impl Debug for SplitDirection
impl Debug for SplitDirection
impl Eq for SplitDirection
Source§impl Hash for SplitDirection
impl Hash for SplitDirection
Source§impl PartialEq for SplitDirection
impl PartialEq for SplitDirection
Source§fn eq(&self, other: &SplitDirection) -> bool
fn eq(&self, other: &SplitDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SplitDirection
Auto Trait Implementations§
impl Freeze for SplitDirection
impl RefUnwindSafe for SplitDirection
impl Send for SplitDirection
impl Sync for SplitDirection
impl Unpin for SplitDirection
impl UnsafeUnpin for SplitDirection
impl UnwindSafe for SplitDirection
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