pub struct PackageSources { /* private fields */ }Expand description
Source name mappings for resolved packages (no_std compatible).
Implementations§
Source§impl PackageSources
impl PackageSources
pub fn from_single_source(package_id: PackageId, source: &str) -> Self
pub fn from_source_maps( source_maps: Vec<SourceMap>, package_id_to_source_map_idx: BTreeMap<PackageId, usize>, ) -> PackageSources
Sourcepub fn source_names(&self) -> impl Iterator<Item = &str>
pub fn source_names(&self) -> impl Iterator<Item = &str>
All unique source names.
Trait Implementations§
Source§impl Clone for PackageSources
impl Clone for PackageSources
Source§fn clone(&self) -> PackageSources
fn clone(&self) -> PackageSources
Returns a duplicate 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 PackageSources
impl RefUnwindSafe for PackageSources
impl Send for PackageSources
impl Sync for PackageSources
impl Unpin for PackageSources
impl UnwindSafe for PackageSources
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