pub enum StrategyConfig {
Sequence {
direction: Direction,
gap: f32,
},
MasterStack {
master_ratio: f32,
gap: f32,
},
Deck {
master_ratio: f32,
gap: f32,
},
CenteredMaster {
master_ratio: f32,
gap: f32,
},
BinarySplit {
spiral: bool,
ratio: f32,
gap: f32,
},
ColumnGrid {
columns: usize,
gap: f32,
},
Dashboard {
columns: usize,
gap: f32,
spans: Vec<usize>,
},
ActivePanel {
variant: ActivePanelVariant,
bar_height: f32,
},
Window {
size: usize,
gap: f32,
},
Slotted {
slots: Vec<SnapshotSlotDef>,
gap: f32,
direction: Direction,
},
}Expand description
Serializable strategy configuration — mirrors StrategyKind with
owned collections instead of Arc<[T]>.
Variants§
Sequence
Flat sequence of panels in a row or column.
MasterStack
One master panel with a stack of secondaries.
Deck
Master panel with a peek at adjacent panels.
CenteredMaster
Master panel centered with stacks on both sides.
BinarySplit
Recursive binary splits (dwindle or spiral).
Fields
ColumnGrid
Fixed number of equal columns with panels distributed.
Dashboard
Grid with per-panel column spans.
Fields
ActivePanel
Only one panel visible at a time (monocle, tabbed, stacked).
Fields
§
variant: ActivePanelVariantWhich variant of active-panel display.
Window
Sliding window of visible panels.
Slotted
Fixed slots with predefined constraints.
Trait Implementations§
Source§impl Clone for StrategyConfig
impl Clone for StrategyConfig
Source§fn clone(&self) -> StrategyConfig
fn clone(&self) -> StrategyConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 StrategyConfig
impl Debug for StrategyConfig
Source§impl From<&StrategyConfig> for StrategyKind
impl From<&StrategyConfig> for StrategyKind
Source§fn from(sc: &StrategyConfig) -> Self
fn from(sc: &StrategyConfig) -> Self
Converts to this type from the input type.
Source§impl From<&StrategyKind> for StrategyConfig
impl From<&StrategyKind> for StrategyConfig
Source§fn from(sk: &StrategyKind) -> Self
fn from(sk: &StrategyKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StrategyConfig
impl RefUnwindSafe for StrategyConfig
impl Send for StrategyConfig
impl Sync for StrategyConfig
impl Unpin for StrategyConfig
impl UnsafeUnpin for StrategyConfig
impl UnwindSafe for StrategyConfig
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