[−][src]Struct repository::EntityId
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]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<R> Ord for EntityId<R>
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[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,
R: RefUnwindSafe,
impl<R> Send for EntityId<R> where
R: Send,
R: Send,
impl<R> Sync for EntityId<R> where
R: Sync,
R: Sync,
impl<R> Unpin for EntityId<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for EntityId<R> where
R: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CallHasher for T where
T: Hash,
T: Hash,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,