Struct sid::Id
[−]
[src]
#[repr(C)]pub struct Id<Tag, Handle = u32> { pub handle: Handle, pub _marker: PhantomData<Tag>, }
Fields
handle: Handle
_marker: PhantomData<Tag>
Methods
impl<T, H: IntegerHandle> Id<T, H>[src]
Trait Implementations
impl<T, H: Display> Debug for Id<T, H>[src]
impl<T, H: Copy> Copy for Id<T, H>[src]
impl<T, H: Copy> Clone for Id<T, H>[src]
fn clone(&self) -> Id<T, H>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<T, H: PartialEq> PartialEq for Id<T, H>[src]
fn eq(&self, other: &Id<T, H>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl<T, H: Copy + Eq> Eq for Id<T, H>[src]
impl<T, H: IntegerHandle> Identifier for Id<T, H>[src]
impl<T, H: ToIndex> ToIndex for Id<T, H>[src]
impl<T, H: IntegerHandle> FromIndex for Id<T, H>[src]
fn from_index(idx: usize) -> Id<T, H>
impl<T, Handle: Hash> Hash for Id<T, Handle>[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
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl<T, Handle: IntegerHandle> Add<Handle> for Id<T, Handle>[src]
type Output = Self
The resulting type after applying the + operator
fn add(self, offset: Handle) -> Self
The method for the + operator