add Send+Sync trait bound to TypeDict

This commit is contained in:
Michael Sippel 2024-10-28 20:00:11 +01:00
parent eec78f24ab
commit f61605a865
Signed by: senvas
GPG key ID: F96CF119C34B64A6

View file

@ -8,7 +8,7 @@ pub enum TypeID {
Var(u64)
}
pub trait TypeDict {
pub trait TypeDict : Send + Sync {
fn insert(&mut self, name: String, id: TypeID);
fn add_varname(&mut self, vn: String) -> TypeID;
fn add_typename(&mut self, tn: String) -> TypeID;