pub struct DragNodeMeta(/* private fields */);Expand description
Compact 1-byte mirrored per-node drag metadata stored in WebEventState:
- bit 0:
draggable - bits 1..=5:
DragAcceptMask(5 bits) - bits 6..=7:
DropEffect(2 bits)
Implementations§
Source§impl DragNodeMeta
impl DragNodeMeta
pub const EMPTY: Self
pub const fn from_parts( draggable: bool, accept: DragAcceptMask, drop_effect: DropEffect, ) -> Self
pub const fn is_empty(self) -> bool
pub const fn is_draggable(self) -> bool
pub const fn accept(self) -> DragAcceptMask
pub const fn drop_effect(self) -> DropEffect
pub const fn is_drop_target(self) -> bool
Trait Implementations§
Source§impl Clone for DragNodeMeta
impl Clone for DragNodeMeta
impl Copy for DragNodeMeta
Source§impl Debug for DragNodeMeta
impl Debug for DragNodeMeta
Source§impl Default for DragNodeMeta
impl Default for DragNodeMeta
impl Eq for DragNodeMeta
Source§impl Hash for DragNodeMeta
impl Hash for DragNodeMeta
Source§impl PartialEq for DragNodeMeta
impl PartialEq for DragNodeMeta
impl StructuralPartialEq for DragNodeMeta
Auto Trait Implementations§
impl Forget for DragNodeMeta
impl Freeze for DragNodeMeta
impl Move for DragNodeMeta
impl RefUnwindSafe for DragNodeMeta
impl Send for DragNodeMeta
impl Sync for DragNodeMeta
impl Unpin for DragNodeMeta
impl UnsafeUnpin for DragNodeMeta
impl UnwindSafe for DragNodeMeta
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