pub enum StrategyConfig {
Sequence {
axis: Axis,
gap: f32,
ratio: Option<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,
},
Dashboard {
columns: GridColumnMode,
gap: f32,
spans: Box<[CardSpan]>,
auto_rows: bool,
},
ActivePanel {
variant: ActivePanelVariant,
bar_height: f32,
},
Window {
panel_count: usize,
gap: f32,
},
Slotted {
slots: Box<[SnapshotSlotDef]>,
gap: f32,
axis: Axis,
},
}Expand description
Serializable strategy recipe for snapshot restore.
Mirrors StrategyKind with owned collections (Box<[T]>) instead of
Arc<[T]>, making it safe for serde round-trips without shared-ownership
bookkeeping.
Variants§
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