pub struct DragDropPolicy {
pub storage_items: Option<DragDropAction>,
pub text: Option<DragDropAction>,
}Fields§
§storage_items: Option<DragDropAction>§text: Option<DragDropAction>Implementations§
Source§impl DragDropPolicy
impl DragDropPolicy
pub fn new() -> Self
pub fn storage_items(self, action: impl Into<Option<DragDropAction>>) -> Self
pub fn text(self, action: impl Into<Option<DragDropAction>>) -> Self
Trait Implementations§
Source§impl Clone for DragDropPolicy
impl Clone for DragDropPolicy
Source§fn clone(&self) -> DragDropPolicy
fn clone(&self) -> DragDropPolicy
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 moreSource§impl Debug for DragDropPolicy
impl Debug for DragDropPolicy
Source§impl Default for DragDropPolicy
impl Default for DragDropPolicy
Source§fn default() -> DragDropPolicy
fn default() -> DragDropPolicy
Returns the “default value” for a type. Read more
impl Eq for DragDropPolicy
Source§impl PartialEq for DragDropPolicy
impl PartialEq for DragDropPolicy
impl StructuralPartialEq for DragDropPolicy
Auto Trait Implementations§
impl Freeze for DragDropPolicy
impl RefUnwindSafe for DragDropPolicy
impl Send for DragDropPolicy
impl Sync for DragDropPolicy
impl Unpin for DragDropPolicy
impl UnsafeUnpin for DragDropPolicy
impl UnwindSafe for DragDropPolicy
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