Struct obj_pool::ObjId[][src]

pub struct ObjId(_);

An id of the object in an ObjPool.

In release it is basically just an index in the underlying vector, but in debug it's an index + ObjPool-specific offset. This is made to be able to check ObjId if it's from the same ObjPool we are trying to get an object from.

Methods

impl ObjId
[src]

Methods from Deref<Target = u32>

Trait Implementations

impl Copy for ObjId
[src]

impl Clone for ObjId
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ObjId
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ObjId
[src]

impl Hash for ObjId
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for ObjId
[src]

Formats the value using the given formatter. Read more

impl Display for ObjId
[src]

Formats the value using the given formatter. Read more

impl FromStr for ObjId
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl Deref for ObjId
[src]

The resulting type after dereferencing.

Dereferences the value.

impl From<u32> for ObjId
[src]

Performs the conversion.

impl InvalidValue<ObjId> for ObjId
[src]

impl<T> Index<ObjId> for ObjPool<T>
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<T> IndexMut<ObjId> for ObjPool<T>
[src]

Performs the mutable indexing (container[index]) operation.

Auto Trait Implementations

impl Send for ObjId

impl Sync for ObjId