Home
last modified time | relevance | path

Searched refs:AllocInit (Results 1 – 1 of 1) sorted by relevance

/linux-6.6.21/rust/alloc/ !
Draw_vec.rs22 enum AllocInit { enum
132 Self::allocate_in(capacity, AllocInit::Uninitialized, alloc) in with_capacity_in()
139 Self::try_allocate_in(capacity, AllocInit::Uninitialized, alloc) in try_with_capacity_in()
147 Self::allocate_in(capacity, AllocInit::Zeroed, alloc) in with_capacity_zeroed_in()
177 fn allocate_in(capacity: usize, init: AllocInit, alloc: A) -> Self { in allocate_in() argument
193 AllocInit::Uninitialized => alloc.allocate(layout), in allocate_in()
194 AllocInit::Zeroed => alloc.allocate_zeroed(layout), in allocate_in()
212 … fn try_allocate_in(capacity: usize, init: AllocInit, alloc: A) -> Result<Self, TryReserveError> { in try_allocate_in() argument
221 AllocInit::Uninitialized => alloc.allocate(layout), in try_allocate_in()
222 AllocInit::Zeroed => alloc.allocate_zeroed(layout), in try_allocate_in()