allocate

Function allocate 

Source
pub fn allocate(handle: impl Into<Handle>) -> Task<Result<Allocation, Error>>
Expand description

Allocates an image [Handle].

When you obtain an Allocation explicitly, you get the guarantee that using a [Handle] will draw the corresponding image immediately in the next frame.