pub struct EntityReference<E: EntityDomain>(/* private fields */);Trait Implementations§
impl<E: EntityDomain> BareValueDomain for EntityReference<E>
Source§impl<E: EntityDomain + GroupKey> GroupingValue for EntityReference<E>
impl<E: EntityDomain + GroupKey> GroupingValue for EntityReference<E>
type Key = E
fn to_group_key(value: &Self::Value<'_>) -> <Self::Key as IndexDomain>::Owned
impl<E: EntityDomain> ReturnValueDomain for EntityReference<E>
Source§impl<E: EntityDomain> ValueDomain for EntityReference<E>
impl<E: EntityDomain> ValueDomain for EntityReference<E>
type Owned = <E as IndexDomain>::Owned
type Value<'a> = <E as IndexDomain>::Index<'a>
fn into_owned(value: Self::Value<'_>) -> Self::Owned
fn from_owned(owned: &Self::Owned) -> Self::Value<'_>
Auto Trait Implementations§
impl<E> Freeze for EntityReference<E>
impl<E> RefUnwindSafe for EntityReference<E>where
E: RefUnwindSafe,
impl<E> Send for EntityReference<E>where
E: Send,
impl<E> Sync for EntityReference<E>where
E: Sync,
impl<E> Unpin for EntityReference<E>where
E: Unpin,
impl<E> UnsafeUnpin for EntityReference<E>
impl<E> UnwindSafe for EntityReference<E>where
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more