Struct obj_pool::ObjId [−][src]
pub struct ObjId(_);
An id of the object in an ObjPool.
It is basically just an index in the underlying vector.
Trait Implementations
impl Copy for ObjId[src]
impl Copy for ObjIdimpl Clone for ObjId[src]
impl Clone for ObjIdfn clone(&self) -> ObjId[src]
fn clone(&self) -> ObjIdReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for ObjId[src]
impl PartialEq for ObjIdfn eq(&self, other: &ObjId) -> bool[src]
fn eq(&self, other: &ObjId) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ObjId) -> bool[src]
fn ne(&self, other: &ObjId) -> boolThis method tests for !=.
impl Eq for ObjId[src]
impl Eq for ObjIdimpl Hash for ObjId[src]
impl Hash for ObjIdfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for ObjId[src]
impl Debug for ObjIdfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T> Index<ObjId> for ObjPool<T>[src]
impl<T> Index<ObjId> for ObjPool<T>type Output = T
The returned type after indexing.
fn index(&self, obj_id: ObjId) -> &T[src]
fn index(&self, obj_id: ObjId) -> &TPerforms the indexing (container[index]) operation.
impl<T> IndexMut<ObjId> for ObjPool<T>[src]
impl<T> IndexMut<ObjId> for ObjPool<T>