`PinnedVec` trait defines the interface for vectors which guarantee that elements added to the vector are pinned to their memory locations unless explicitly changed.
/// Error occurred during an attempt to increase capacity of the pinned vector.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]pubenumPinnedVecGrowthError{/// An error stating that the vector is only allowed to grow if its entire current capacity is used.
CanOnlyGrowWhenVecIsAtCapacity,/// An error which is observed when a pinned vector attempted to increase its capacity while keeping its already added elements pinned in their locations.
FailedToGrowWhileKeepingElementsPinned,}