[−][src]Struct repository::EntityPtr
A pointer handle to a value in repository.
Implementations
impl<T: Any, R> EntityPtr<T, R>
[src]
pub fn cast_repo<R2>(self) -> EntityPtr<T, R2>
[src]
Convert entity pointer to work with another repository type.
impl<T: Any, R: AsRepoRef> EntityPtr<T, R>
[src]
pub fn entity_id(self, repo: &R) -> Result<EntityId<R>, Error>
[src]
Try to retrieve an index handle to the value.
pub fn get_ref(self, repo: &R) -> Result<&T, Error>
[src]
Try to retrieve a reference to the value.
impl<T: Any, R: AsRepoMut> EntityPtr<T, R>
[src]
pub fn get_mut(self, repo: &mut R) -> Result<&mut T, Error>
[src]
Try to retrieve a mutable reference to the value.
Trait Implementations
impl<T: Any, R> Clone for EntityPtr<T, R>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Any, R> Copy for EntityPtr<T, R>
[src]
impl<T: Any, R> Debug for EntityPtr<T, R>
[src]
impl<T: Any, R> Eq for EntityPtr<T, R>
[src]
impl<T: Any, R> Hash for EntityPtr<T, 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<T: Any, R> Ord for EntityPtr<T, 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<T: Any, R> PartialEq<EntityPtr<T, R>> for EntityPtr<T, R>
[src]
impl<T: Any, R> PartialOrd<EntityPtr<T, R>> for EntityPtr<T, R>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T: Any, R> Send for EntityPtr<T, R>
[src]
impl<T: Any, R> Sync for EntityPtr<T, R>
[src]
Auto Trait Implementations
impl<T, R> RefUnwindSafe for EntityPtr<T, R> where
R: RefUnwindSafe,
T: RefUnwindSafe,
R: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, R> Unpin for EntityPtr<T, R>
impl<T, R> UnwindSafe for EntityPtr<T, R> where
R: RefUnwindSafe,
T: RefUnwindSafe,
R: RefUnwindSafe,
T: RefUnwindSafe,
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>,