pub struct Document {
pub name: String,
pub system_code: String,
pub aliases: BTreeMap<String, Item>,
pub stages: BTreeMap<String, Stage>,
pub dep_aliases: BTreeMap<String, Rc<Document>>,
pub imports: Vec<Rc<Document>>,
pub tests: Tests,
pub metadata: Vec<(String, String)>,
}Expand description
A parsed, dependency-resolved map document.
Fields§
§name: StringThe map id (file stem; how Interscript.transliterate addresses it).
system_code: String§aliases: BTreeMap<String, Item>§stages: BTreeMap<String, Stage>§dep_aliases: BTreeMap<String, Rc<Document>>Aliased dependencies (stage-run targets), keyed by alias.
imports: Vec<Rc<Document>>Library imports (unaliased dependencies), loaded documents.
tests: Tests§metadata: Vec<(String, String)>Raw metadata key/value text pairs (inert for transliteration).
Implementations§
Source§impl Document
impl Document
Sourcepub fn imported_aliases(&self) -> BTreeMap<String, Item>
pub fn imported_aliases(&self) -> BTreeMap<String, Item>
Interscript::Node::Document#imported_aliases: each import
dependency’s own aliases merged UNDER the doc’s own aliases.
Sourcepub fn imported_stages(&self) -> BTreeMap<String, Stage>
pub fn imported_stages(&self) -> BTreeMap<String, Stage>
imported_stages: import deps’ stages merged under own stages.
Sourcepub fn lookup_alias(&self, name: &str) -> Option<Item>
pub fn lookup_alias(&self, name: &str) -> Option<Item>
Look up an alias through the import chain (word context).
Auto Trait Implementations§
impl !Send for Document
impl !Sync for Document
impl Freeze for Document
impl RefUnwindSafe for Document
impl Unpin for Document
impl UnsafeUnpin for Document
impl UnwindSafe for Document
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