yazi-shared 26.5.6

Yazi shared library
Documentation
1
2
3
4
5
6
7
8
9
use crate::pool::{Pool, Symbol};

pub trait InternStr {
	fn intern(&self) -> Symbol<str>;
}

impl<T: AsRef<str>> InternStr for T {
	fn intern(&self) -> Symbol<str> { Pool::<str>::intern(self) }
}