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<'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§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 ==
.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