[][src]Struct sid::Id

#[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]

pub fn new(idx: H) -> Id<T, H>[src]

Important traits for IdRange<T, H>
pub fn as_range(&self) -> IdRange<T, H>[src]

Trait Implementations

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

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

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

type Handle = H

type Tag = T

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

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

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

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

type Output = Self

The resulting type after applying the + operator.

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

type Output = Self

The resulting type after applying the - operator.

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]

Auto Trait Implementations

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

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

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.