1use crate::pool::{Pool, Symbol}; 2 3pub trait InternStr { 4 fn intern(&self) -> Symbol<str>; 5} 6 7impl<T: AsRef<str>> InternStr for T { 8 fn intern(&self) -> Symbol<str> { Pool::<str>::intern(self) } 9}