pub struct Instance { /* private fields */ }Implementations§
Source§impl Instance
impl Instance
pub fn new() -> Result<Instance, Error>
pub fn is_valid_path<T: AsRef<str>>(&mut self, path: T) -> Result<bool, Error>
pub fn query_path_info<T: AsRef<str>>( &mut self, path: T, ) -> Result<Option<PathInfo>, Error>
pub fn query_path_from_hash_part<T: AsRef<str>>( &mut self, hash_part: T, ) -> Result<Option<String>, Error>
pub fn query_path_from_file_hash<T: AsRef<str>>( &mut self, file_hash: T, ) -> Result<Option<String>, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl !Sync for Instance
impl Unpin for Instance
impl UnwindSafe for Instance
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