[go: up one dir, main page]

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]

Important traits for IdRange<T, H>

Trait Implementations

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

Formats the value using the given formatter. Read more

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: ToUsize> ToUsize for Id<T, H>
[src]

impl<T, H: IntegerHandle> FromUsize 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.

Performs the + operation.

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

The resulting type after applying the - operator.

Performs the - operation.

Auto Trait Implementations

impl<Tag, Handle> Send for Id<Tag, Handle> where
    Handle: Send,
    Tag: Send

impl<Tag, Handle> Sync for Id<Tag, Handle> where
    Handle: Sync,
    Tag: Sync