[][src]Struct repository::EntityId

pub struct EntityId<R = Repo>(_, _);

An index handle to a value in repository.

Implementations

impl<R> EntityId<R>[src]

pub fn cast_repo<R2>(self) -> EntityId<R2>[src]

Convert entity id to work with another repository type.

impl<R: AsRepoRef> EntityId<R>[src]

pub fn cast_ptr<T: Any>(self, repo: &R) -> Option<EntityPtr<T>>[src]

Try to downcast this index handle to a pointer handle.

pub fn cast_ref<T: Any>(self, repo: &R) -> Option<&T>[src]

Try to downcast this index handle to a reference to the value.

impl<R: AsRepoMut> EntityId<R>[src]

pub fn cast_mut<T: Any>(self, repo: &mut R) -> Option<&mut T>[src]

Try to downcast this index handle to a mutable reference to the value.

Trait Implementations

impl<R> Clone for EntityId<R>[src]

impl<R> Copy for EntityId<R>[src]

impl<R> Debug for EntityId<R>[src]

impl<R> Eq for EntityId<R>[src]

impl<R> Hash for EntityId<R>[src]

impl<R> Ord for EntityId<R>[src]

impl<R> PartialEq<EntityId<R>> for EntityId<R>[src]

impl<R> PartialOrd<EntityId<R>> for EntityId<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for EntityId<R> where
    R: RefUnwindSafe

impl<R> Send for EntityId<R> where
    R: Send

impl<R> Sync for EntityId<R> where
    R: Sync

impl<R> Unpin for EntityId<R> where
    R: Unpin

impl<R> UnwindSafe for EntityId<R> where
    R: UnwindSafe

Blanket Implementations

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

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

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

impl<T> CallHasher for T where
    T: Hash

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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> 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.