Struct librsnek::compiler::symbol::SymIndex
[−]
[src]
struct SymIndex<T>(HashMap<Descriptor<Scope>, RefCell<HashSet<T>>>)
where
T: Hash + Eq + Ord;
Methods
impl<T> SymIndex<T> where
T: Hash + Eq + Ord,
[src]
T: Hash + Eq + Ord,
fn new() -> Self
fn get_or_create(&mut self, scope: &Descriptor<Scope>) -> RefMut<HashSet<T>>
Trait Implementations
impl<T> Serialize for SymIndex<T> where
T: Serialize + Hash + Eq + Ord,
[src]
T: Serialize + Hash + Eq + Ord,
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
S: Serializer,
Serialize this value into the given Serde serializer.
impl<T: Debug> Debug for SymIndex<T> where
T: Hash + Eq + Ord,
[src]
T: Hash + Eq + Ord,
impl<T: Clone> Clone for SymIndex<T> where
T: Hash + Eq + Ord,
[src]
T: Hash + Eq + Ord,
fn clone(&self) -> SymIndex<T>
Returns a copy of the value.
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
.