orx-pinned-vec 3.23.0

`PinnedVec` trait defines the interface for vectors which guarantee that elements added to the vector are pinned to their memory locations unless explicitly changed.
Documentation
1
2
3
4
5
6
7
8
/// Error occurred during an attempt to increase capacity of the pinned vector.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum PinnedVecGrowthError {
    /// 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,
}