Fish Touching🐟🎣

Rust Box

May 21, 2023

Boxes don’t have performance overhead, other than storing their data on the heap instead of on the stack.

# Box<dyn Error>

A way to write simple code while preserving the original errors is to  Box them. The drawback is that the underlying error type is only known at runtime and not  statically determined.