pub enum DropPosition {
Before,
After,
Inside,
}Expand description
Specifies where a node should be placed relative to a target during drag-drop.
This enum is used in OutlinerActions::on_move to indicate the desired
position of the dragged node relative to the drop target.
Variants§
Before
Place the node before the target (as a sibling)
After
Place the node after the target (as a sibling)
Inside
Place the node inside the target (as a child)
This is only valid if the target is a collection node.
Trait Implementations§
Source§impl Clone for DropPosition
impl Clone for DropPosition
Source§fn clone(&self) -> DropPosition
fn clone(&self) -> DropPosition
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 DropPosition
impl Debug for DropPosition
Source§impl Hash for DropPosition
impl Hash for DropPosition
Source§impl PartialEq for DropPosition
impl PartialEq for DropPosition
impl Copy for DropPosition
impl Eq for DropPosition
impl StructuralPartialEq for DropPosition
Auto Trait Implementations§
impl Freeze for DropPosition
impl RefUnwindSafe for DropPosition
impl Send for DropPosition
impl Sync for DropPosition
impl Unpin for DropPosition
impl UnwindSafe for DropPosition
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