inline_dyn
A container type for storing dynamically-sized types (e.g., trait objects, slices) inline.
Example
Creating an owned trait object without dynamic allocation:
use InlineDynDisplay;
// Can store any type that implements `Display` as long as it is layout
// compatible with `usize`.
let val: InlineDynDisplay = new;
assert_eq!;
License
Licensed under either of Apache License (Version 2.0) or MIT license at your discretion.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.