Lines Matching defs:T
645 pub unsafe fn from_raw_parts(ptr: *mut T, length: usize, capacity: usize) -> Self { in from_raw_parts()
900 pub unsafe fn from_raw_parts_in(ptr: *mut T, length: usize, capacity: usize, alloc: A) -> Self { in from_raw_parts_in()
937 pub fn into_raw_parts(self) -> (*mut T, usize, usize) { in into_raw_parts()
981 pub fn into_raw_parts_with_alloc(self) -> (*mut T, usize, usize, A) { in into_raw_parts_with_alloc()
1217 pub fn into_boxed_slice(mut self) -> Box<[T], A> { in into_boxed_slice()
1305 pub fn as_slice(&self) -> &[T] { in as_slice()
1322 pub fn as_mut_slice(&mut self) -> &mut [T] { in as_mut_slice()
1354 pub fn as_ptr(&self) -> *const T { in as_ptr()
1387 pub fn as_mut_ptr(&mut self) -> *mut T { in as_mut_ptr()
1512 pub fn swap_remove(&mut self, index: usize) -> T { in swap_remove()
1553 pub fn insert(&mut self, index: usize, element: T) { in insert()
1614 pub fn remove(&mut self, index: usize) -> T { in remove()
1743 fn process_loop<F, T, A: Allocator, const DELETED: bool>( in retain_mut() argument
1833 F: FnMut(&mut T, &mut T) -> bool, in dedup_by()
1942 pub fn push(&mut self, value: T) { in push()
2011 pub fn push_within_capacity(&mut self, value: T) -> Result<(), T> { in push_within_capacity() argument
2040 pub fn pop(&mut self) -> Option<T> { in pop()
2079 unsafe fn append_elements(&mut self, other: *const [T]) { in append_elements()
2129 pub fn drain<R>(&mut self, range: R) -> Drain<'_, T, A> in drain() argument
2308 F: FnMut() -> T, in resize_with()
2381 pub fn spare_capacity_mut(&mut self) -> &mut [MaybeUninit<T>] { in spare_capacity_mut()
2446 pub fn split_at_spare_mut(&mut self) -> (&mut [T], &mut [MaybeUninit<T>]) { in split_at_spare_mut()
2458 ) -> (&mut [T], &mut [MaybeUninit<T>], &mut usize) { in split_at_spare_mut_with_len()
2506 pub fn resize(&mut self, new_len: usize, value: T) { in resize()
2576 pub fn extend_from_slice(&mut self, other: &[T]) { in extend_from_slice()
2665 pub fn into_flattened(self) -> Vec<T, A> { in into_flattened()
2689 fn next(&mut self) -> T; in next()
2690 fn last(self) -> T; in last()
2695 fn next(&mut self) -> T { in next()
2698 fn last(self) -> T { in last()
2794 pub fn from_elem<T: Clone>(elem: T, n: usize) -> Vec<T> { in from_elem()
2801 pub fn from_elem_in<T: Clone, A: Allocator>(elem: T, n: usize, alloc: A) -> Vec<T, A> { in from_elem_in() argument
2869 fn deref(&self) -> &[T] { in deref()
2877 fn deref_mut(&mut self) -> &mut [T] { in deref_mut()
3034 fn extend_one(&mut self, item: T) { in extend_one()
3252 pub fn drain_filter<F>(&mut self, filter: F) -> DrainFilter<'_, T, F, A> in drain_filter() argument
3281 fn extend_one(&mut self, &item: &'a T) { in extend_one()
3344 fn as_ref(&self) -> &Vec<T, A> { in as_ref()
3351 fn as_mut(&mut self) -> &mut Vec<T, A> { in as_mut()
3358 fn as_ref(&self) -> &[T] { in as_ref()
3365 fn as_mut(&mut self) -> &mut [T] { in as_mut()
3381 fn from(s: &[T]) -> Vec<T> { in from()
3385 fn from(s: &[T]) -> Vec<T> { in from()
3401 fn from(s: &mut [T]) -> Vec<T> { in from()
3405 fn from(s: &mut [T]) -> Vec<T> { in from()
3421 fn from(s: [T; N]) -> Vec<T> { in from()
3426 fn from(s: [T; N]) -> Vec<T> { in from()
3451 fn from(s: Cow<'a, [T]>) -> Vec<T> { in from()
3469 fn from(s: Box<[T], A>) -> Self { in from()
3497 fn from(v: Vec<T, A>) -> Self { in from()
3547 fn try_from(mut vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>> { in try_from()