1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
//! Crate-related implementations for [`crate::VecDeku`]. use alloc::vec::Vec; use crate::InternalValue; use super::VecDeku; impl<T> InternalValue for VecDeku<T> where T: Sized + Clone, { type InternalType = Vec<T>; #[inline] fn internal_move(self) -> Self::InternalType { self.0 } #[inline] fn internal_mut(&mut self) -> &mut Self::InternalType { &mut self.0 } #[inline] fn internal_ref(&self) -> &Self::InternalType { &self.0 } }