logo
pub struct StdDescriptorPool { /* private fields */ }
Expand description

Standard implementation of a descriptor pool.

It is guaranteed that the Arc<StdDescriptorPool> is kept alive by its allocations. This is desirable so that we can store a Weak<StdDescriptorPool>.

Whenever a set is allocated, this implementation will try to find a pool that has some space for it. If there is one, allocate from it. If there is none, create a new pool whose capacity is 40 sets and 40 times the requested descriptors. This number is arbitrary.

Implementations

Builds a new StdDescriptorPool.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the device that owns Self.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.