Rust syntax update in README.
This commit is contained in:
parent
fc5cee3e04
commit
1446d0ae87
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ As another example of such an interface, JavaScript objects are exactly the same
|
||||||
|
|
||||||
Fortunately, we can do better than these things in Rust. Our type system is quite equal to easy, robust expression of such problems.
|
Fortunately, we can do better than these things in Rust. Our type system is quite equal to easy, robust expression of such problems.
|
||||||
|
|
||||||
The ``AnyMap`` type is a friendly wrapper around a ``HashMap<TypeId, Box<Any>:'static>``, exposing a nice, easy typed interface, perfectly safe and absolutely robust.
|
The ``AnyMap`` type is a friendly wrapper around a ``HashMap<TypeId, Box<Any + 'static>>``, exposing a nice, easy typed interface, perfectly safe and absolutely robust.
|
||||||
|
|
||||||
What this means is that in an ``AnyMap`` you may store zero or one values for every type.
|
What this means is that in an ``AnyMap`` you may store zero or one values for every type.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue