Lines Matching refs:T
31 pub trait FallibleAllocExt<T> {
33 fn try_push(&mut self, value: T) -> Result<(), alloc::collections::TryReserveError>; in try_push()
37 other: &[T], in try_extend_from_slice() argument
40 T: Clone; in try_extend_from_slice()
43 impl<T> FallibleAllocExt<T> for Vec<T> {
44 fn try_push(&mut self, value: T) -> Result<(), alloc::collections::TryReserveError> { in try_push()
51 other: &[T], in try_extend_from_slice() argument
54 T: Clone, in try_extend_from_slice()
64 pub fn vec_try_fill_with_alloc_err<T: Clone>( in vec_try_fill_with_alloc_err() argument
65 elem: T, in vec_try_fill_with_alloc_err()
67 ) -> Result<Vec<T>, alloc::collections::TryReserveError> { in vec_try_fill_with_alloc_err() argument
95 pub fn try_to_vec<T: Clone>(s: &[T]) -> Result<Vec<T>, alloc::collections::TryReserveError> { in try_to_vec() argument