pub struct Composer {
pub slots: Vec<Box<dyn Any>>,
pub slot_callers: Vec<&'static Location<'static>>,
pub cursor: usize,
pub auto_counts: FxHashMap<String, usize>,
pub keyed_slots: FxHashMap<String, Box<dyn Any>>,
pub keyed_owner: FxHashMap<String, String>,
pub keyed_owners: FxHashMap<String, FxHashSet<String>>,
pub live_keyed_owners: FxHashSet<String>,
pub live_keyed_keys: FxHashSet<String>,
pub cache_preserved_owners: FxHashSet<String>,
pub scope_caches: FxHashMap<String, ScopeCache>,
pub live_scope_keys: FxHashSet<String>,
}Fields§
§slots: Vec<Box<dyn Any>>§slot_callers: Vec<&'static Location<'static>>§cursor: usize§auto_counts: FxHashMap<String, usize>§keyed_slots: FxHashMap<String, Box<dyn Any>>§keyed_owner: FxHashMap<String, String>§keyed_owners: FxHashMap<String, FxHashSet<String>>§live_keyed_owners: FxHashSet<String>Owner tokens of registered scopes visited this frame, plus the root token.
live_keyed_keys: FxHashSet<String>Raw keys read through remember_with_key this frame.
cache_preserved_owners: FxHashSet<String>Owner tokens of scopes served from cache this frame. Their bodies did not re-run, so their keyed slots go unread and must not be collected.
scope_caches: FxHashMap<String, ScopeCache>§live_scope_keys: FxHashSet<String>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Composer
impl !Send for Composer
impl !Sync for Composer
impl !UnwindSafe for Composer
impl Forget for Composer
impl Freeze for Composerwhere
*const u8 is !null: Freeze,
PhantomData<Box<dyn Any>>: Freeze,
PhantomData<&'static Location<'static>>: Freeze,
PhantomData<(String, usize)>: Freeze,
PhantomData<(String, Box<dyn Any>)>: Freeze,
PhantomData<(String, String)>: Freeze,
PhantomData<(String, HashSet<String, FxBuildHasher>)>: Freeze,
PhantomData<(String, ())>: Freeze,
PhantomData<(String, ScopeCache)>: Freeze,
impl Move for Composer
impl Unpin for Composerwhere
*const u8 is !null: Unpin,
Box<dyn Any>: Unpin,
&'static Location<'static>: Unpin,
&'static str: Unpin,
Arc<[TextSpan]>: Unpin,
Arc<str>: Unpin,
Arc<dyn Fn(&SubcomposeScope) -> Vec<(u64, View)>>: Unpin,
Arc<ShapePath>: Unpin,
Rc<dyn Fn(Vec2) -> Vec2>: Unpin,
Rc<dyn Fn(Vec2, ScrollSource) -> Vec2>: Unpin,
Rc<dyn Fn(f32)>: Unpin,
Rc<dyn Fn() -> f32>: Unpin,
Rc<dyn Fn()>: Unpin,
Rc<dyn Fn(NestedScrollConnection)>: Unpin,
Rc<dyn Fn() -> (f32, f32)>: Unpin,
Rc<dyn Fn(f32, f32)>: Unpin,
Rc<dyn Fn(&mut Scene, Rect, ControlVisualState)>: Unpin,
Rc<dyn Fn(Vec2, NestedScrollSource) -> Vec2>: Unpin,
Rc<dyn Fn(Vec2, Vec2, NestedScrollSource) -> Vec2>: Unpin,
Rc<dyn Fn(PointerEvent)>: Unpin,
Rc<dyn Fn(Rect)>: Unpin,
Rc<dyn Fn(Vec2)>: Unpin,
Rc<dyn Fn(KeyEvent) -> bool>: Unpin,
Rc<dyn Fn(ImeEvent) -> bool>: Unpin,
Rc<dyn Fn(LayoutConstraints) -> (Dp, Dp)>: Unpin,
Rc<dyn Fn() -> GraphicsLayerScope>: Unpin,
Rc<SharedElementInner>: Unpin,
Rc<dyn ModifierNodeElement>: Unpin,
Rc<dyn ModifierNode>: Unpin,
Rc<Cell<bool>>: Unpin,
Rc<dyn Fn(&mut Scene, Rect, f32)>: Unpin,
Arc<dyn Any + Sync + Send>: Unpin,
Rc<dyn Fn(DragStart) -> Option<Rc<dyn Any>>>: Unpin,
Rc<dyn Fn(DragEnd)>: Unpin,
Rc<dyn Fn(DragOver)>: Unpin,
Rc<dyn Fn(DropEvent) -> bool>: Unpin,
Rc<dyn Fn(&mut Scene, &DragPreviewCtx)>: Unpin,
Rc<dyn Fn(Action) -> bool>: Unpin,
Arc<CustomCursorImage>: Unpin,
Rc<RefCell<Option<u64>>>: Unpin,
Rc<dyn Fn(bool)>: Unpin,
Rc<RefCell<InteractionState>>: Unpin,
Rc<dyn Fn(String)>: Unpin,
Rc<dyn VisualTransformation>: Unpin,
Rc<dyn Fn(&TextLayoutResult)>: Unpin,
Rc<dyn Fn(&dyn KeyboardActionScope)>: Unpin,
Rc<RefCell<Option<TextRange>>>: Unpin,
Rc<RefCell<TextLayoutGeometry>>: Unpin,
Rc<dyn IndicationNodeFactory>: Unpin,
impl UnsafeUnpin for Composerwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Box<dyn Any>>: UnsafeUnpin,
PhantomData<&'static Location<'static>>: UnsafeUnpin,
PhantomData<(String, usize)>: UnsafeUnpin,
PhantomData<(String, Box<dyn Any>)>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<(String, HashSet<String, FxBuildHasher>)>: UnsafeUnpin,
PhantomData<(String, ())>: UnsafeUnpin,
PhantomData<(String, ScopeCache)>: UnsafeUnpin,
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