pub struct VisibilityPlan {
pub show: Vec<PanelSide>,
pub hide: Vec<PanelSide>,
pub create: Option<PanelSide>,
pub seed: bool,
}Expand description
The resolved effect of a VisibilityIntent: which sides should be shown
afterwards, and whether a missing dock should be created to satisfy it.
This is the entire visibility state machine as a pure function; the app
method App::apply_visibility only carries out the plan.
Fields§
§show: Vec<PanelSide>Sides that should be visible afterwards.
hide: Vec<PanelSide>Sides that should be hidden afterwards.
create: Option<PanelSide>Create and seed a dock on this side when it does not already exist.
seed: boolSeed an empty dock with a default pane (so showing it is not an empty
shell). Only used with create/show.
Trait Implementations§
Source§impl Clone for VisibilityPlan
impl Clone for VisibilityPlan
Source§impl Debug for VisibilityPlan
impl Debug for VisibilityPlan
impl Eq for VisibilityPlan
Source§impl PartialEq for VisibilityPlan
impl PartialEq for VisibilityPlan
impl StructuralPartialEq for VisibilityPlan
Auto Trait Implementations§
impl Freeze for VisibilityPlan
impl RefUnwindSafe for VisibilityPlan
impl Send for VisibilityPlan
impl Sync for VisibilityPlan
impl Unpin for VisibilityPlan
impl UnsafeUnpin for VisibilityPlan
impl UnwindSafe for VisibilityPlan
Blanket Implementations§
Source§impl<C> AsyncPosition<()> for C
impl<C> AsyncPosition<()> for C
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more