pub struct HoveredFile {
pub path: Option<PathBuf>,
pub mime: String,
}
Expand description
A file about to be dropped into egui.
Fields§
§path: Option<PathBuf>
Set by the egui-winit
backend.
mime: String
With the eframe
web backend, this is set to the mime-type of the file (if available).
Trait Implementations§
Source§impl Clone for HoveredFile
impl Clone for HoveredFile
Source§fn clone(&self) -> HoveredFile
fn clone(&self) -> HoveredFile
Returns a copy 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 HoveredFile
impl Debug for HoveredFile
Source§impl Default for HoveredFile
impl Default for HoveredFile
Source§fn default() -> HoveredFile
fn default() -> HoveredFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HoveredFile
impl<'de> Deserialize<'de> for HoveredFile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HoveredFile
impl PartialEq for HoveredFile
Source§impl Serialize for HoveredFile
impl Serialize for HoveredFile
impl Eq for HoveredFile
impl StructuralPartialEq for HoveredFile
Auto Trait Implementations§
impl Freeze for HoveredFile
impl RefUnwindSafe for HoveredFile
impl Send for HoveredFile
impl Sync for HoveredFile
impl Unpin for HoveredFile
impl UnwindSafe for HoveredFile
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