pub struct AppState { /* private fields */ }Expand description
Opaque per-session state that persists between frames.
Tracks focus, scroll positions, hook state, and other frame-to-frame data.
Create with AppState::new() and pass to frame() each iteration.
§Example
ⓘ
let mut state = slt::AppState::new();
// state is passed to slt::frame() in your render loopImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppState
impl !RefUnwindSafe for AppState
impl !Send for AppState
impl !Sync for AppState
impl Unpin for AppState
impl UnsafeUnpin for AppState
impl !UnwindSafe for AppState
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