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: Template> Group<T>
impl<T: Template> 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 fn watch_update(&self) -> Receiver<()>
pub 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
sourcepub fn get_path(&self) -> Arc<Vec<CompactString>>
pub fn get_path(&self) -> Arc<Vec<CompactString>>
Get allocated group prefix