pub trait DroppedFile: Debug {
// Required methods
fn path(&self) -> &Path;
fn bytes(&self) -> Result<Vec<u8>, String>;
}Available on crate feature
egui only.Expand description
A file dropped into egui.
The integration owns the concrete file handle, letting egui remain independent of windowing backends and file APIs.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".