mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-24 16:21:04 +00:00
21 lines
484 B
Rust
21 lines
484 B
Rust
use mlua::{IntoLua, Lua, Value};
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
use super::Ember;
|
|
|
|
#[derive(Debug, Serialize, Deserialize)]
|
|
pub struct EmberMount;
|
|
|
|
impl EmberMount {
|
|
pub fn owned() -> Ember<'static> { Self.into() }
|
|
|
|
pub fn borrowed() -> Ember<'static> { Self::owned() }
|
|
}
|
|
|
|
impl From<EmberMount> for Ember<'_> {
|
|
fn from(value: EmberMount) -> Self { Self::Mount(value) }
|
|
}
|
|
|
|
impl IntoLua for EmberMount {
|
|
fn into_lua(self, _: &Lua) -> mlua::Result<Value> { Ok(Value::Nil) }
|
|
}
|