pub enum DockLayoutApply {
IfMissing,
Replace,
}Expand description
Policy controlling whether an existing persisted dock tree is preserved.
Variants§
IfMissing
Build only when the root did not exist before this frame’s dockspace submission.
Replace
Replace the existing root with the complete declared layout.
The topology is staged under a temporary root before the native commit point. Validation and recoverable staging failures leave an existing layout unchanged and alive for the current frame. A successful replacement preserves the root ID, but child-node IDs, tab selection, focus, and relative tab order are not stable across replacement. Replacement must be submitted before any affected window begins its frame.
Trait Implementations§
Source§impl Clone for DockLayoutApply
impl Clone for DockLayoutApply
Source§fn clone(&self) -> DockLayoutApply
fn clone(&self) -> DockLayoutApply
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 DockLayoutApply
Source§impl Debug for DockLayoutApply
impl Debug for DockLayoutApply
Source§impl Default for DockLayoutApply
impl Default for DockLayoutApply
Source§fn default() -> DockLayoutApply
fn default() -> DockLayoutApply
Returns the “default value” for a type. Read more
impl Eq for DockLayoutApply
Source§impl Hash for DockLayoutApply
impl Hash for DockLayoutApply
Source§impl PartialEq for DockLayoutApply
impl PartialEq for DockLayoutApply
impl StructuralPartialEq for DockLayoutApply
Auto Trait Implementations§
impl Freeze for DockLayoutApply
impl RefUnwindSafe for DockLayoutApply
impl Send for DockLayoutApply
impl Sync for DockLayoutApply
impl Unpin for DockLayoutApply
impl UnsafeUnpin for DockLayoutApply
impl UnwindSafe for DockLayoutApply
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