Struct stc_ts_storage::Builtin
source · [−]Fields
vars: FxHashMap<JsWord, Type>
types: FxHashMap<JsWord, Vec<Type>>
Trait Implementations
sourceimpl ErrorStore for Builtin
impl ErrorStore for Builtin
fn report(&mut self, err: Error)
fn report_all(&mut self, err: Errors)
fn take_errors(&mut self) -> Errors
sourceimpl Mode for Builtin
impl Mode for Builtin
sourcefn module_id(&self, _stmt_index: usize) -> ModuleId
fn module_id(&self, _stmt_index: usize) -> ModuleId
Returns the id of the module where statement #
stmt_index
came from.fn top_level_ctxt(&self, _: ModuleId) -> SyntaxContext
fn is_dts(&self) -> bool
fn path(&self, _: ModuleId) -> Arc<FileName>
fn subscope(&self) -> Storage<'_>
fn merge_back(&mut self, subscope: Storage<'_>)
sourceimpl TypeStore for Builtin
impl TypeStore for Builtin
fn store_private_type(
&mut self,
ctxt: ModuleId,
id: Id,
ty: Type,
should_override: bool
)
fn store_private_var(&mut self, ctxt: ModuleId, id: Id, ty: Type)
fn export_stored_var(&mut self, _: Span, _: ModuleId, _: Id, _: Id)
fn export_stored_type(&mut self, _: Span, _: ModuleId, _: Id, _: Id)
fn get_local_type(&self, _ctxt: ModuleId, id: Id) -> Option<Type>
fn get_local_var(&self, _ctxt: ModuleId, id: Id) -> Option<Type>
fn take_info(&mut self, _ctxt: ModuleId) -> ModuleTypeData
fn export_type(&mut self, _: Span, _: ModuleId, _: JsWord, _: Type)
fn export_var(&mut self, _: Span, _: ModuleId, _: JsWord, _: Type)
Auto Trait Implementations
impl RefUnwindSafe for Builtin
impl Send for Builtin
impl Sync for Builtin
impl Unpin for Builtin
impl UnwindSafe for Builtin
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more