Lines Matching defs:T

643     pub unsafe fn from_raw_parts(ptr: *mut T, length: usize, capacity: usize) -> Self {  in from_raw_parts()
901 pub unsafe fn from_raw_parts_in(ptr: *mut T, length: usize, capacity: usize, alloc: A) -> Self { in from_raw_parts_in()
938 pub fn into_raw_parts(self) -> (*mut T, usize, usize) { in into_raw_parts()
982 pub fn into_raw_parts_with_alloc(self) -> (*mut T, usize, usize, A) { in into_raw_parts_with_alloc()
1218 pub fn into_boxed_slice(mut self) -> Box<[T], A> { in into_boxed_slice()
1306 pub fn as_slice(&self) -> &[T] { in as_slice()
1323 pub fn as_mut_slice(&mut self) -> &mut [T] { in as_mut_slice()
1355 pub fn as_ptr(&self) -> *const T { in as_ptr()
1388 pub fn as_mut_ptr(&mut self) -> *mut T { in as_mut_ptr()
1513 pub fn swap_remove(&mut self, index: usize) -> T { in swap_remove()
1554 pub fn insert(&mut self, index: usize, element: T) { in insert()
1615 pub fn remove(&mut self, index: usize) -> T { in remove()
1744 fn process_loop<F, T, A: Allocator, const DELETED: bool>( in retain_mut() argument
1834 F: FnMut(&mut T, &mut T) -> bool, in dedup_by()
1943 pub fn push(&mut self, value: T) { in push()
2012 pub fn push_within_capacity(&mut self, value: T) -> Result<(), T> { in push_within_capacity() argument
2041 pub fn pop(&mut self) -> Option<T> { in pop()
2080 unsafe fn append_elements(&mut self, other: *const [T]) { in append_elements()
2084 unsafe { ptr::copy_nonoverlapping(other as *const T, self.as_mut_ptr().add(len), count) }; in append_elements() constant
2094 unsafe { ptr::copy_nonoverlapping(other as *const T, self.as_mut_ptr().add(len), count) }; in try_append_elements() constant
2130 pub fn drain<R>(&mut self, range: R) -> Drain<'_, T, A> in drain() argument
2309 F: FnMut() -> T, in resize_with()
2382 pub fn spare_capacity_mut(&mut self) -> &mut [MaybeUninit<T>] { in spare_capacity_mut()
2447 pub fn split_at_spare_mut(&mut self) -> (&mut [T], &mut [MaybeUninit<T>]) { in split_at_spare_mut()
2459 ) -> (&mut [T], &mut [MaybeUninit<T>], &mut usize) { in split_at_spare_mut_with_len()
2507 pub fn resize(&mut self, new_len: usize, value: T) { in resize()
2577 pub fn extend_from_slice(&mut self, other: &[T]) { in extend_from_slice()
2666 pub fn into_flattened(self) -> Vec<T, A> { in into_flattened()
2691 fn extend_with(&mut self, n: usize, value: T) { in extend_with()
2779 pub fn from_elem<T: Clone>(elem: T, n: usize) -> Vec<T> { in from_elem()
2786 pub fn from_elem_in<T: Clone, A: Allocator>(elem: T, n: usize, alloc: A) -> Vec<T, A> { in from_elem_in() argument
2854 fn deref(&self) -> &[T] { in deref()
2862 fn deref_mut(&mut self) -> &mut [T] { in deref_mut()
2975 begin.add(me.len()) as *const T in into_iter() constant
3019 fn extend_one(&mut self, item: T) { in extend_one()
3243 pub fn extract_if<F>(&mut self, filter: F) -> ExtractIf<'_, T, F, A> in extract_if() argument
3272 fn extend_one(&mut self, &item: &'a T) { in extend_one()
3291 fn partial_cmp(&self, other: &Vec<T, A2>) -> Option<Ordering> { in partial_cmp()
3340 fn as_ref(&self) -> &Vec<T, A> { in as_ref()
3347 fn as_mut(&mut self) -> &mut Vec<T, A> { in as_mut()
3354 fn as_ref(&self) -> &[T] { in as_ref()
3361 fn as_mut(&mut self) -> &mut [T] { in as_mut()
3377 fn from(s: &[T]) -> Vec<T> { in from()
3381 fn from(s: &[T]) -> Vec<T> { in from()
3397 fn from(s: &mut [T]) -> Vec<T> { in from()
3401 fn from(s: &mut [T]) -> Vec<T> { in from()
3417 fn from(s: [T; N]) -> Vec<T> { in from()
3422 fn from(s: [T; N]) -> Vec<T> { in from()
3447 fn from(s: Cow<'a, [T]>) -> Vec<T> { in from()
3465 fn from(s: Box<[T], A>) -> Self { in from()
3493 fn from(v: Vec<T, A>) -> Self { in from()
3543 fn try_from(mut vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>> { in try_from()