mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
21 lines
494 B
Rust
21 lines
494 B
Rust
use mlua::{IntoLua, Lua, Value};
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
use super::Ember;
|
|
|
|
#[derive(Clone, Debug, Deserialize, Serialize)]
|
|
pub struct EmberMount;
|
|
|
|
impl EmberMount {
|
|
pub fn borrowed() -> Ember<'static> { Self.into() }
|
|
|
|
pub fn owned() -> Ember<'static> { Self::borrowed() }
|
|
}
|
|
|
|
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) }
|
|
}
|