mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
31 lines
486 B
Rust
31 lines
486 B
Rust
use yazi_shared::id::{Id, Ids};
|
|
|
|
pub fn fetcher_id() -> Id {
|
|
static IDS: Ids = Ids::new();
|
|
IDS.next()
|
|
}
|
|
|
|
pub fn preloader_id() -> Id {
|
|
static IDS: Ids = Ids::new();
|
|
IDS.next()
|
|
}
|
|
|
|
pub fn previewer_id() -> Id {
|
|
static IDS: Ids = Ids::new();
|
|
IDS.next()
|
|
}
|
|
|
|
pub fn spotter_id() -> Id {
|
|
static IDS: Ids = Ids::new();
|
|
IDS.next()
|
|
}
|
|
|
|
pub fn open_rule_id() -> Id {
|
|
static IDS: Ids = Ids::new();
|
|
IDS.next()
|
|
}
|
|
|
|
pub fn opener_rule_id() -> Id {
|
|
static IDS: Ids = Ids::new();
|
|
IDS.next()
|
|
}
|