NonEmpty vector implementation, with non-emptiness ensured by construction.
Inherits slices' methods through the Deref and DerefMut traits.
Vec's methods are manually overriden. Some important differences:
lenreturnsNonZeroUsizeandis_emptyalways returnsfalse.first(_mut),last(_mut),split_first(_mut),split_last(_mut)don't returnOption.popandremovereturnNoneif there is only one element.
For example usage, please look at the embedded unit testing.