Home
last modified time | relevance | path

Searched refs:try_with_capacity_in (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-6.6/rust/alloc/vec/
H A Dmod.rs537 Self::try_with_capacity_in(capacity, Global) in try_with_capacity()
759 /// let mut vec = Vec::try_with_capacity_in(10, System).unwrap();
777 /// let mut result = Vec::try_with_capacity_in(usize::MAX, System);
782 /// let vec_units = Vec::<(), System>::try_with_capacity_in(10, System).unwrap();
787 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in() functions
788 Ok(Vec { buf: RawVec::try_with_capacity_in(capacity, alloc)?, len: 0 }) in try_with_capacity_in()
/kernel/linux/linux-6.6/rust/alloc/
H A Draw_vec.rs138 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in() functions

Completed in 6 milliseconds