Skip to main content

ResourceFile

Trait ResourceFile 

Source
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§

Source

fn data(&self) -> &'static [u8]

Source

fn modified(&self) -> u64

Source

fn mime_type(&self) -> &str

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ResourceFile for Resource

Source§

fn data(&self) -> &'static [u8]

Source§

fn modified(&self) -> u64

Source§

fn mime_type(&self) -> &str

Implementors§