Struct egui::HoveredFile
source · 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 PartialEq for HoveredFile
impl PartialEq for HoveredFile
source§fn eq(&self, other: &HoveredFile) -> bool
fn eq(&self, other: &HoveredFile) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for HoveredFile
impl StructuralEq for HoveredFile
impl StructuralPartialEq for HoveredFile
Auto Trait Implementations§
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