Searched refs:UninitType (Results 1 – 5 of 5) sorted by relevance
94 type UninitType; typedef101 assert!(std::mem::size_of::<Self>() == std::mem::size_of::<Self::UninitType>());102 assert!(std::mem::align_of::<Self>() == std::mem::align_of::<Self::UninitType>());107 fn uninit() -> Self::UninitType; in uninit()110 fn from_init(value: Self) -> Self::UninitType; in from_init() argument180 let mut vec: Option<Vec<Self::UninitType>> = None; in deserialize_array()217 let vec = unsafe { &mut *(array as *mut Option<Vec<T::UninitType>>) }; in deserialize_element()307 let vec = unsafe { &mut *(data as *mut Option<Vec<T::UninitType>>) }; in allocate_vec_with_buffer()325 let vec = unsafe { &mut *(data as *mut Option<Vec<T::UninitType>>) }; in allocate_vec()333 let mut new_vec: Vec<T::UninitType> = Vec::with_capacity(len as usize); in allocate_vec()[all …]
129 type UninitType = Option<Self>; typedef130 fn uninit() -> Self::UninitType { in uninit()131 Self::UninitType::default() in uninit()133 fn from_init(value: Self) -> Self::UninitType { in from_init() argument
181 type UninitType = Self; typedef182 fn uninit() -> Self::UninitType { in uninit()185 fn from_init(value: Self) -> Self::UninitType { in from_init() argument
416 type UninitType = Option<Self>; typedef417 fn uninit() -> Self::UninitType { in uninit()418 Self::UninitType::default() in uninit()420 fn from_init(value: Self) -> Self::UninitType { in from_init() argument
1140 type UninitType = Self;1141 fn uninit() -> Self::UninitType { Self::UninitType::default() }1142 fn from_init(value: Self) -> Self::UninitType { value }