Trait GetFromVite

Source
pub trait GetFromVite:
    Send
    + Sync
    + 'static {
    // Required methods
    fn get(&self, file_path: &str) -> Option<ViteFile>;
    fn clone_box(&self) -> Box<dyn GetFromVite>;
}
Expand description

Note: this is used to allow dynamic usage of embedded asset structs.

Required Methods§

Source

fn get(&self, file_path: &str) -> Option<ViteFile>

Source

fn clone_box(&self) -> Box<dyn GetFromVite>

Implementors§