pub struct IngotId(/* private fields */);
Implementations§
Source§impl IngotId
impl IngotId
pub fn std_lib(db: &mut dyn AnalyzerDb) -> Self
pub fn from_build_files( db: &mut dyn AnalyzerDb, build_files: &BuildFiles, ) -> Self
pub fn from_files( db: &mut dyn AnalyzerDb, name: &str, mode: IngotMode, file_kind: FileKind, files: &[(impl AsRef<str>, impl AsRef<str>)], ) -> Self
pub fn external_ingots( &self, db: &dyn AnalyzerDb, ) -> Rc<IndexMap<SmolStr, IngotId>>
pub fn all_modules(&self, db: &dyn AnalyzerDb) -> Rc<[ModuleId]>
pub fn data(&self, db: &dyn AnalyzerDb) -> Rc<Ingot>
pub fn name(&self, db: &dyn AnalyzerDb) -> SmolStr
Sourcepub fn root_module(&self, db: &dyn AnalyzerDb) -> Option<ModuleId>
pub fn root_module(&self, db: &dyn AnalyzerDb) -> Option<ModuleId>
Returns the main.fe
, or lib.fe
module, depending on the ingot “mode”
(IngotMode).
pub fn items(&self, db: &dyn AnalyzerDb) -> Rc<IndexMap<SmolStr, Item>>
pub fn diagnostics(&self, db: &dyn AnalyzerDb) -> Vec<Diagnostic>
pub fn sink_diagnostics( &self, db: &dyn AnalyzerDb, sink: &mut impl DiagnosticSink, )
pub fn sink_external_ingot_diagnostics( &self, db: &dyn AnalyzerDb, sink: &mut impl DiagnosticSink, )
Trait Implementations§
Source§impl InternKey for IngotId
impl InternKey for IngotId
Source§fn from_intern_id(v: InternId) -> Self
fn from_intern_id(v: InternId) -> Self
Create an instance of the intern-key from a
u32
value.Source§fn as_intern_id(&self) -> InternId
fn as_intern_id(&self) -> InternId
Extract the
u32
with which the intern-key was created.Source§impl Ord for IngotId
impl Ord for IngotId
Source§impl PartialOrd for IngotId
impl PartialOrd for IngotId
impl Copy for IngotId
impl Eq for IngotId
impl StructuralPartialEq for IngotId
Auto Trait Implementations§
impl Freeze for IngotId
impl RefUnwindSafe for IngotId
impl Send for IngotId
impl Sync for IngotId
impl Unpin for IngotId
impl UnwindSafe for IngotId
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.