I'm calling a C constructor function that allocates memory returns one pointer.
I found some similar questions. they use Nonnull or *mut T to wrap it.
And I also found another similar structure Unique, it will take the ownership of T.
This makes me wonder, what is the difference between them and how should I choose?
NonNull?Uniqueis a private type in the standard library, not meant to be used directly.Uniqueis an internally used struct. Thanks for your answer~