Enum piston_window::prelude::FileDrag
source · pub enum FileDrag {
Hover(PathBuf),
Drop(PathBuf),
Cancel,
}
Expand description
Models dragging and dropping files.
Variants§
Hover(PathBuf)
A file is being hovered over the window.
Drop(PathBuf)
A file has been dropped into the window.
Cancel
A file was hovered, but has exited the window.
Trait Implementations§
source§impl<'de> Deserialize<'de> for FileDrag
impl<'de> Deserialize<'de> for FileDrag
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<FileDrag, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<FileDrag, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for FileDrag
impl Ord for FileDrag
source§impl PartialEq for FileDrag
impl PartialEq for FileDrag
source§impl PartialOrd for FileDrag
impl PartialOrd for FileDrag
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for FileDrag
impl Serialize for FileDrag
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for FileDrag
impl StructuralPartialEq for FileDrag
Auto Trait Implementations§
impl Freeze for FileDrag
impl RefUnwindSafe for FileDrag
impl Send for FileDrag
impl Sync for FileDrag
impl Unpin for FileDrag
impl UnwindSafe for FileDrag
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