pub struct PaneDockPreview {
pub target: PaneId,
pub zone: PaneDockZone,
pub score: f64,
pub ghost_rect: Rect,
}Expand description
One magnetic docking preview candidate.
Fields§
§target: PaneId§zone: PaneDockZone§score: f64Distance-weighted score; higher means stronger attraction.
ghost_rect: RectGhost rectangle to visualize the insertion/drop target.
Trait Implementations§
Source§impl Clone for PaneDockPreview
impl Clone for PaneDockPreview
Source§fn clone(&self) -> PaneDockPreview
fn clone(&self) -> PaneDockPreview
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 PaneDockPreview
impl Debug for PaneDockPreview
Source§impl PartialEq for PaneDockPreview
impl PartialEq for PaneDockPreview
impl Copy for PaneDockPreview
impl StructuralPartialEq for PaneDockPreview
Auto Trait Implementations§
impl Freeze for PaneDockPreview
impl RefUnwindSafe for PaneDockPreview
impl Send for PaneDockPreview
impl Sync for PaneDockPreview
impl Unpin for PaneDockPreview
impl UnsafeUnpin for PaneDockPreview
impl UnwindSafe for PaneDockPreview
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