Rust patterns
Detects whether T implements some traits
When to use
- Want to know if a type implements some traits at run-time.
Trait object from trait with generic methods
When to use
- Want to make a trait obejct from a trait having some generic methods.
- Generic methods require 'static lifetime such as
foo<T: 'static>()
.
When to use
- When you want to manager functions that have different signatures from each other.
- You need to call them in your code.
When to use
- When you want to see how to implement ECS in terms of system and query.
When to use
- When you want to use web worker and bundle your JS and wasm with Webpack.