pub struct ComponentStateStore { /* private fields */ }Implementations§
Source§impl ComponentStateStore
impl ComponentStateStore
pub fn new() -> Self
pub fn begin_frame(&self)
pub fn end_frame(&self)
pub fn abort_frame(&self)
pub fn with_mut<T, R>(&self, id: &UiId, f: impl FnOnce(&mut T) -> R) -> R
pub fn with_mut_for_component<T, R>( &self, id: &UiId, owner: ComponentId, invalidation_id: UiId, f: impl FnOnce(&mut T) -> R, ) -> R
pub fn handle_action( &self, id: &UiId, action: &UiAction, ) -> ComponentActionOutcome
pub fn contains(&self, id: &UiId) -> bool
pub fn take_route_invalidation(&self, id: &UiId) -> bool
pub fn advance(&self, elapsed_ms: f32) -> Vec<UiId>
pub fn preserve_scope(&self, scope: &UiScope)
Trait Implementations§
Source§impl Default for ComponentStateStore
impl Default for ComponentStateStore
Source§fn default() -> ComponentStateStore
fn default() -> ComponentStateStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ComponentStateStore
impl !RefUnwindSafe for ComponentStateStore
impl !Send for ComponentStateStore
impl !Sync for ComponentStateStore
impl !UnwindSafe for ComponentStateStore
impl Unpin for ComponentStateStore
impl UnsafeUnpin for ComponentStateStore
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