#[non_exhaustive]pub enum Spacing {
Space(u16),
Overlap(u16),
}Expand description
How adjacent panes relate along the split axis in a _spaced split: a fixed gap between
them, or a shared, overlapping edge.
A plain u16 (the historic spacing parameter) converts to Space via
From, so existing callers of split_h_spaced/split_v_spaced/split_h_n_spaced/
split_v_n_spaced keep compiling unchanged.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Space(u16)
Carve out a fixed n-cell gap between every adjacent pair of panes. The gap comes out
of the area before constraints are resolved, so Fill/
Percent panes share only what’s left after every gap is
reserved. No-op with fewer than two panes or n == 0.
Overlap(u16)
Shift every pane back by n cells so it overlaps the trailing edge of the previous
pane, e.g. so two adjacent bordered panels can share one line of border instead of each
drawing its own (ratatui’s Spacing::Overlap). Purely geometric: retroglyph does not
merge the overlapping cells’ contents, so whichever pane is drawn last wins on the
shared cells. No-op with fewer than two panes or n == 0.
Trait Implementations§
impl Copy for Spacing
impl Eq for Spacing
impl StructuralPartialEq for Spacing
Auto Trait Implementations§
impl Freeze for Spacing
impl RefUnwindSafe for Spacing
impl Send for Spacing
impl Sync for Spacing
impl Unpin for Spacing
impl UnsafeUnpin for Spacing
impl UnwindSafe for Spacing
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<C> WithAlpha for Cwhere
C: Copy,
impl<C> WithAlpha for Cwhere
C: Copy,
§fn with_alpha_first<A>(self, alpha: A) -> AlphaFirst<A, Self>
fn with_alpha_first<A>(self, alpha: A) -> AlphaFirst<A, Self>
self with alpha, storing alpha before the color in memory
(see [AlphaFirst]).§fn with_alpha_last<A>(self, alpha: A) -> AlphaLast<A, Self>
fn with_alpha_last<A>(self, alpha: A) -> AlphaLast<A, Self>
self with alpha, storing alpha after the color in memory
(see [AlphaLast]).