Home
last modified time | relevance | path

Searched defs:T (Results 1 – 10 of 10) sorted by relevance

/rust/alloc/
Dslice.rs167 pub fn into_vec<T, A: Allocator>(b: Box<[T], A>) -> Vec<T, A> { in into_vec() argument
177 pub fn to_vec<T: ConvertVec, A: Allocator>(s: &[T], alloc: A) -> Vec<T, A> { in to_vec() argument
189 impl<T: Clone> ConvertVec for T { implementation
226 impl<T: Copy> ConvertVec for T { implementation
243 impl<T> [T] { implementation
332 F: FnMut(&T, &T) -> Ordering, in sort_by()
503 pub fn to_vec_in<A: Allocator>(&self, alloc: A) -> Vec<T, A> in to_vec_in()
528 pub fn into_vec<A: Allocator>(self: Box<Self, A>) -> Vec<T, A> { in into_vec() argument
777 fn concat(slice: &Self) -> Vec<T> { in concat()
792 fn join(slice: &Self, sep: &T) -> Vec<T> { in join()
[all …]
Dboxed.rs265 pub fn pin(x: T) -> Pin<Box<T>> { in pin()
361 pub const fn new_in(x: T, alloc: A) -> Self in new_in()
390 pub const fn try_new_in(x: T, alloc: A) -> Result<Self, AllocError> in try_new_in()
427 pub const fn new_uninit_in(alloc: A) -> Box<mem::MaybeUninit<T>, A> in new_uninit_in()
465 pub const fn try_new_uninit_in(alloc: A) -> Result<Box<mem::MaybeUninit<T>, A>, AllocError> in try_new_uninit_in()
499 pub const fn new_zeroed_in(alloc: A) -> Box<mem::MaybeUninit<T>, A> in new_zeroed_in()
537 pub const fn try_new_zeroed_in(alloc: A) -> Result<Box<mem::MaybeUninit<T>, A>, AllocError> in try_new_zeroed_in()
553 pub const fn pin_in(x: T, alloc: A) -> Pin<Self> in pin_in()
565 pub const fn into_boxed_slice(boxed: Self) -> Box<[T], A> { in into_boxed_slice()
616 pub fn new_uninit_slice(len: usize) -> Box<[mem::MaybeUninit<T>]> { in new_uninit_slice()
[all …]
Dborrow.rs86 impl<T> ToOwned for T implementation
91 fn to_owned(&self) -> T { in to_owned()
95 fn clone_into(&self, target: &mut T) { in clone_into()
437 fn as_ref(&self) -> &T { in as_ref()
Draw_vec.rs156 pub unsafe fn into_box(self, len: usize) -> Box<[MaybeUninit<T>], A> { in into_box()
217 pub unsafe fn from_raw_parts_in(ptr: *mut T, capacity: usize, alloc: A) -> Self { in from_raw_parts_in()
225 pub fn ptr(&self) -> *mut T { in ptr()
282 fn do_reserve_and_handle<T, A: Allocator>( in reserve()
283 slf: &mut RawVec<T, A>, in reserve()
Dalloc.rs336 pub(crate) const unsafe fn box_free<T: ?Sized, A: ~const Allocator + ~const Destruct>( in box_free()
425 impl<T: Clone> WriteCloneIntoRaw for T { implementation
434 impl<T: Copy> WriteCloneIntoRaw for T { implementation
/rust/alloc/vec/
Dmod.rs545 pub unsafe fn from_raw_parts(ptr: *mut T, length: usize, capacity: usize) -> Self { in from_raw_parts()
692 pub unsafe fn from_raw_parts_in(ptr: *mut T, length: usize, capacity: usize, alloc: A) -> Self { in from_raw_parts_in()
729 pub fn into_raw_parts(self) -> (*mut T, usize, usize) { in into_raw_parts()
773 pub fn into_raw_parts_with_alloc(self) -> (*mut T, usize, usize, A) { in into_raw_parts_with_alloc()
1003 pub fn into_boxed_slice(mut self) -> Box<[T], A> { in into_boxed_slice()
1091 pub fn as_slice(&self) -> &[T] { in as_slice()
1108 pub fn as_mut_slice(&mut self) -> &mut [T] { in as_mut_slice()
1139 pub fn as_ptr(&self) -> *const T { in as_ptr()
1175 pub fn as_mut_ptr(&mut self) -> *mut T { in as_mut_ptr()
1304 pub fn swap_remove(&mut self, index: usize) -> T { in swap_remove()
[all …]
Dinto_iter.rs66 pub fn as_slice(&self) -> &[T] { in as_slice()
84 pub fn as_mut_slice(&mut self) -> &mut [T] { in as_mut_slice()
95 fn as_raw_mut_slice(&mut self) -> *mut [T] { in as_raw_mut_slice()
137 fn as_ref(&self) -> &[T] { in as_ref()
152 fn next(&mut self) -> Option<T> { in next()
230 fn next_back(&mut self) -> Option<T> { in next_back()
291 impl<T: Copy> NonDrop for T {} implementation
Ddrain.rs59 pub fn as_slice(&self) -> &[T] { in as_slice()
74 fn as_ref(&self) -> &[T] { in as_ref()
89 fn next(&mut self) -> Option<T> { in next()
101 fn next_back(&mut self) -> Option<T> { in next_back()
Dis_zero.rs40 unsafe impl<T> IsZero for *const T { implementation
47 unsafe impl<T> IsZero for *mut T { implementation
Ddrain_filter.rs68 fn next(&mut self) -> Option<T> { in next()
85 let src: *const T = &v[i]; in next() constant