pub struct Composer {
pub slots: Vec<Box<dyn Any>>,
pub slot_callers: Vec<&'static Location<'static>>,
pub cursor: usize,
pub keyed_slots: FxHashMap<String, Box<dyn Any>>,
pub scope_caches: FxHashMap<String, ScopeCache>,
}Fields§
§slots: Vec<Box<dyn Any>>§slot_callers: Vec<&'static Location<'static>>Caller identity for each slot, used to detect stale slots when the composition tree changes between frames.
cursor: usize§keyed_slots: FxHashMap<String, Box<dyn Any>>§scope_caches: FxHashMap<String, ScopeCache>Per-scope cached state for the scope! macro.
Keyed by the scope key string.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Composer
impl !Send for Composer
impl !Sync for Composer
impl !UnwindSafe for Composer
impl Freeze for Composer
impl Unpin for Composer
impl UnsafeUnpin for Composer
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