pub struct Items { /* private fields */ }
Expand description
The set of items that exist within some lexical scope via declaration or importing.
Implementations
sourceimpl Items
impl Items
sourcepub fn symbols(&self) -> &OrdMap<Ident, TyDeclaration>
pub fn symbols(&self) -> &OrdMap<Ident, TyDeclaration>
Immutable access to the inner symbol map.
pub fn apply_storage_load(
&self,
fields: Vec<Ident>,
storage_fields: &[TyStorageField],
access_span: &Span
) -> CompileResult<(TyStorageAccess, TypeId)>
pub fn set_storage_declaration(
&mut self,
decl_id: DeclarationId
) -> CompileResult<()>
pub fn get_all_declared_symbols(&self) -> impl Iterator<Item = &Ident>
Trait Implementations
impl StructuralPartialEq for Items
Auto Trait Implementations
impl RefUnwindSafe for Items
impl Send for Items
impl Sync for Items
impl Unpin for Items
impl UnwindSafe for Items
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