mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
15 lines
260 B
Rust
15 lines
260 B
Rust
use std::ops::Deref;
|
|
|
|
use mlua::{FromLua, UserData};
|
|
|
|
#[derive(Clone, Copy, FromLua)]
|
|
pub struct Id(pub yazi_shared::Id);
|
|
|
|
impl Deref for Id {
|
|
type Target = yazi_shared::Id;
|
|
|
|
#[inline]
|
|
fn deref(&self) -> &Self::Target { &self.0 }
|
|
}
|
|
|
|
impl UserData for Id {}
|