pub trait TakeAs<T> { // Required method fn take(self) -> T; }
Trait for values being taken.
Takes the inner value if there is exactly one strong reference and clones it otherwise.