pub struct Group<T> {
pub __body: T,
/* private fields */
}Expand description
Primary interface that end user may interact with
Wrap ReflectData derivative like Group<MyData>
Fields§
§__body: TCached local content
Implementations§
source§impl<T: ConfigGroupData> Group<T>
impl<T: ConfigGroupData> Group<T>
sourcepub fn check_elem_update<U: 'static>(&self, e: &U) -> bool
pub fn check_elem_update<U: 'static>(&self, e: &U) -> bool
Check update from entity address
sourcepub fn get_index_by_ptr<U: 'static>(&self, e: &U) -> Option<usize>
pub fn get_index_by_ptr<U: 'static>(&self, e: &U) -> Option<usize>
Get index of element
pub fn get_prop_by_ptr<U: 'static>(&self, e: &U) -> Option<&PropData>
sourcepub fn commit_elem<U: Clone + EntityTrait + Send>(&self, e: &U, notify: bool)
pub fn commit_elem<U: Clone + EntityTrait + Send>(&self, e: &U, notify: bool)
Commit entity value to storage (silently)
sourcepub async fn watch_update(&self) -> Receiver<()>
pub async fn watch_update(&self) -> Receiver<()>
Get update receiver
sourcepub fn mark_all_elem_dirty(&self)
pub fn mark_all_elem_dirty(&self)
Mark all elements dirty
sourcepub fn mark_group_dirty(&mut self)
pub fn mark_group_dirty(&mut self)
Mark this group dirty.
sourcepub fn mark_dirty<U: 'static>(&self, elem: &U)
pub fn mark_dirty<U: 'static>(&self, elem: &U)
Mark given element dirty.
sourcepub fn get_metadata<U: 'static>(&self, elem: &U) -> Arc<Metadata>
pub fn get_metadata<U: 'static>(&self, elem: &U) -> Arc<Metadata>
Get generated metadata of given element
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Group<T>
impl<T> !Send for Group<T>
impl<T> !Sync for Group<T>
impl<T> Unpin for Group<T>where
T: Unpin,
impl<T> !UnwindSafe for Group<T>
Blanket Implementations§
source§impl<T, A> DynAccess<T> for Awhere
A: Access<T>,
<A as Access<T>>::Guard: 'static,
impl<T, A> DynAccess<T> for Awhere
A: Access<T>,
<A as Access<T>>::Guard: 'static,
source§fn load(&self) -> DynGuard<T>
fn load(&self) -> DynGuard<T>
The equivalent of
Access::load.