pub struct PackageHead {
pub map: BTreeMap<String, String>,
pub sig_files: BTreeMap<String, String>,
pub flat_imports: BTreeMap<String, String>,
pub file_imports: BTreeMap<String, BTreeMap<String, String>>,
}Expand description
A package head decomposed into what the renderer needs: the SigId→StageId head map, each SigId’s source file, and the imports (flat, and per-file).
Fields§
§map: BTreeMap<String, String>SigId → StageId at the head.
sig_files: BTreeMap<String, String>SigId → the source file its declaration came from (in_file).
flat_imports: BTreeMap<String, String>module → alias, flattened across files (single-module render).
file_imports: BTreeMap<String, BTreeMap<String, String>>file → (module → alias) (multi-module render).
Trait Implementations§
Source§impl Clone for PackageHead
impl Clone for PackageHead
Source§fn clone(&self) -> PackageHead
fn clone(&self) -> PackageHead
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PackageHead
impl Debug for PackageHead
Source§impl Default for PackageHead
impl Default for PackageHead
Source§fn default() -> PackageHead
fn default() -> PackageHead
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PackageHead
impl RefUnwindSafe for PackageHead
impl Send for PackageHead
impl Sync for PackageHead
impl Unpin for PackageHead
impl UnsafeUnpin for PackageHead
impl UnwindSafe for PackageHead
Blanket Implementations§
impl<T> Allocation for T
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