mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
10 lines
278 B
Rust
10 lines
278 B
Rust
use mlua::{AnyUserData, UserDataRegistry};
|
|
|
|
use crate::file::File;
|
|
|
|
pub struct FileInventory {
|
|
pub register: fn(&mut UserDataRegistry<File>),
|
|
pub borrow: fn(&AnyUserData, &mut dyn FnMut(&File) -> mlua::Result<()>) -> mlua::Result<()>,
|
|
}
|
|
|
|
inventory::collect!(FileInventory);
|