pub struct Cache<TError: Error> { /* private fields */ }
Implementations§
Source§impl<TError: Error> Cache<TError>
impl<TError: Error> Cache<TError>
pub fn new() -> Cache<TError>
pub fn get_path(&mut self, path: &Path) -> Result<PathBuf, TError::ErrorType>
pub fn insert<TVal: Into<OsString>>(&mut self, resid: usize, value: TVal)
pub fn get(&self, resid: usize) -> Result<&OsString, TError::ErrorType>
pub fn parse_string(&self, from: &str) -> Result<OsString, TError::ErrorType>
Auto Trait Implementations§
impl<TError> Freeze for Cache<TError>
impl<TError> RefUnwindSafe for Cache<TError>where
TError: RefUnwindSafe,
impl<TError> Send for Cache<TError>where
TError: Send,
impl<TError> Sync for Cache<TError>where
TError: Sync,
impl<TError> Unpin for Cache<TError>where
TError: Unpin,
impl<TError> UnwindSafe for Cache<TError>where
TError: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more