Struct sid::Id [] [src]

#[repr(C)]
pub struct Id<Tag, Handle = u32> { pub handle: Handle, pub _marker: PhantomData<Tag>, }

Fields

Methods

impl<T, H: IntegerHandle> Id<T, H>
[src]

Trait Implementations

impl<T, H: Display> Debug for Id<T, H>
[src]

Formats the value using the given formatter.

impl<T, H: Copy> Copy for Id<T, H>
[src]

impl<T, H: Copy> Clone for Id<T, H>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T, H: PartialEq> PartialEq for Id<T, H>
[src]

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

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]

impl<T, Handle: Hash> Hash for Id<T, Handle>
[src]

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

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

impl<T, Handle: IntegerHandle> Add<Handle> for Id<T, Handle>
[src]

The resulting type after applying the + operator

The method for the + operator

impl<T, Handle: IntegerHandle> Sub<Handle> for Id<T, Handle>
[src]

The resulting type after applying the - operator

The method for the - operator