pub struct PackageMap { /* private fields */ }
Expand description
Cached dependencies for racer
Implementations§
Source§impl PackageMap
impl PackageMap
pub fn from_metadata(meta: Metadata) -> Self
pub fn new(packages: Vec<Package>, resolve: Option<Resolve>) -> Self
pub fn ids<'a>(&'a self) -> impl 'a + Iterator<Item = PackageId>
pub fn id_to_idx(&self, id: PackageId) -> Option<PackageIdx>
pub fn get_idx(&self, path: &Path) -> Option<PackageIdx>
pub fn get_id(&self, idx: PackageIdx) -> PackageId
pub fn get_edition(&self, idx: PackageIdx) -> Edition
pub fn get_lib(&self, idx: PackageIdx) -> Option<&Target>
pub fn get_lib_src_path(&self, idx: PackageIdx) -> Option<&Path>
pub fn get_dependencies(&self, idx: PackageIdx) -> &[(InternedString, PathBuf)]
pub fn get_src_path_from_libname( &self, id: PackageIdx, s: &str, ) -> Option<&Path>
Trait Implementations§
Source§impl Clone for PackageMap
impl Clone for PackageMap
Source§fn clone(&self) -> PackageMap
fn clone(&self) -> PackageMap
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PackageMap
impl RefUnwindSafe for PackageMap
impl Send for PackageMap
impl Sync for PackageMap
impl Unpin for PackageMap
impl UnwindSafe for PackageMap
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)