Skip to content
Snippets Groups Projects
Commit 801391e1 authored by Per Lindgren's avatar Per Lindgren
Browse files

updated rtic_bare7

parent 09f8b16b
No related branches found
No related tags found
No related merge requests found
...@@ -231,6 +231,10 @@ fn _toggleable_generic<E>(led: &mut dyn ToggleableOutputPin<Error = E>) { ...@@ -231,6 +231,10 @@ fn _toggleable_generic<E>(led: &mut dyn ToggleableOutputPin<Error = E>) {
// way to implement it more efficiently. Remember, zero-cost is not without cost // way to implement it more efficiently. Remember, zero-cost is not without cost
// just that it is as good as it possibly gets (you can't make it better by hand). // just that it is as good as it possibly gets (you can't make it better by hand).
// //
// (You can also force the compiler to deduce the type at compile time, by using
// `impl` instead of `dyn`, if you are sure you don't want the compiler to
// "fallback" to dynamic dispatch.)
//
// You might find Rust to have long compile times. Yes you are right, // You might find Rust to have long compile times. Yes you are right,
// and this type of deep analysis done in release mode is part of the story. // and this type of deep analysis done in release mode is part of the story.
// On the other hand, the aggressive optimization allows us to code // On the other hand, the aggressive optimization allows us to code
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment