Struct handlemanager::HandleManager[][src]

pub struct HandleManager { /* fields omitted */ }

Methods

impl HandleManager
[src]

Creates a new handle manager with some default settings. You very likely want to change these to suit your use case.

Changes the allocation policy of handles. Panics if handles have already been issued.

Changes the release policy of this handle manager. Panics if handles have already been issued.

Retrieve a handle from the manager. Either generates a new ID if one cannot be recycled, or recycles one which was previously valid.

Checks if a given ID is currently known to the handle manager. Note that if you are using a policy which does not track freed values, this can only check if a handle has never been valid to this point.

Returns a handle to the handle manager. This can fail if the handle was not valid or is currently in a free list.

Trait Implementations

impl Default for HandleManager
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations