pub struct NamespacedMap<T>(pub IndexMap<Option<SolIdent>, IndexMap<SolIdent, T>>);
Expand description
Mapping namespace -> ident -> T
Keeps namespaced items. Namespace None
represents global namespace (top-level items).
Namespace Some(ident)
represents items declared inside of a contract.
Tuple Fields§
§0: IndexMap<Option<SolIdent>, IndexMap<SolIdent, T>>
Implementations§
Source§impl<T> NamespacedMap<T>
impl<T> NamespacedMap<T>
Source§impl<T: Default> NamespacedMap<T>
impl<T: Default> NamespacedMap<T>
Trait Implementations§
Source§impl<T: Clone> Clone for NamespacedMap<T>
impl<T: Clone> Clone for NamespacedMap<T>
Source§fn clone(&self) -> NamespacedMap<T>
fn clone(&self) -> NamespacedMap<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for NamespacedMap<T>
impl<T: Debug> Debug for NamespacedMap<T>
Auto Trait Implementations§
impl<T> Freeze for NamespacedMap<T>
impl<T> RefUnwindSafe for NamespacedMap<T>where
T: RefUnwindSafe,
impl<T> !Send for NamespacedMap<T>
impl<T> !Sync for NamespacedMap<T>
impl<T> Unpin for NamespacedMap<T>where
T: Unpin,
impl<T> UnwindSafe for NamespacedMap<T>where
T: UnwindSafe,
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)