Trait symtern::traits::ResolveUnchecked
[−]
[src]
pub trait ResolveUnchecked: Resolve { unsafe fn resolve_unchecked(self, symbol: Self::Input) -> Self::Output; }
Interface for resolvers that can provide faster symbol resolution at the expense of guaranteed safety.
Required Methods
unsafe fn resolve_unchecked(self, symbol: Self::Input) -> Self::Output
Resolve the given symbol into its referent, bypassing any validity checks.
let mut pool = Pool::<str, u8>::new(); let sym = try!(pool.intern("abc")); assert_eq!("abc", unsafe { pool.resolve_unchecked(sym) });