pub enum EntityEntry<S: LeafStore> {
Entity(LoadedEntity<S>),
Empty {
link: ExactLink,
store: S,
},
}
Variants§
Implementations§
Source§impl<S: LeafStore> EntityEntry<S>
impl<S: LeafStore> EntityEntry<S>
Sourcepub fn entity(self) -> Result<LoadedEntity<S>>
pub fn entity(self) -> Result<LoadedEntity<S>>
Get the entity at this entry.
Sourcepub fn get_or_init(self) -> LoadedEntity<S>
pub fn get_or_init(self) -> LoadedEntity<S>
Get the retrieved entity or initialize an empty one at this link.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for EntityEntry<S>where
S: Freeze,
impl<S> RefUnwindSafe for EntityEntry<S>where
S: RefUnwindSafe,
impl<S> Send for EntityEntry<S>where
S: Send,
impl<S> Sync for EntityEntry<S>where
S: Sync,
impl<S> Unpin for EntityEntry<S>where
S: Unpin,
impl<S> UnwindSafe for EntityEntry<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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