pub trait ResourceFile {
// Required methods
fn data(&self) -> &'static [u8] ⓘ;
fn modified(&self) -> u64;
fn mime_type(&self) -> &str;
}Expand description
Resource file with static data and metadata.
Required Methods§
fn data(&self) -> &'static [u8] ⓘ
fn modified(&self) -> u64
fn mime_type(&self) -> &str
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".