orx_pinned_vec/errors.rs
1/// Error occurred during an attempt to increase capacity of the pinned vector.
2#[derive(Clone, Copy, Debug, PartialEq, Eq)]
3pub enum PinnedVecGrowthError {
4 /// An error stating that the vector is only allowed to grow if its entire current capacity is used.
5 CanOnlyGrowWhenVecIsAtCapacity,
6 /// An error which is observed when a pinned vector attempted to increase its capacity while keeping its already added elements pinned in their locations.
7 FailedToGrowWhileKeepingElementsPinned,
8}