Skip to main content

Core

Struct Core 

Source
pub struct Core<M: TextEngine> { /* private fields */ }
Expand description

The shadow tree of one surface.

Feed it Ops with Core::apply, then call Core::commit once per JS turn to get the MountBatch for the platform. Lists may then ask the runtime to render more items (Core::take_list_binds); the engine runs those and commits again within the same frame.

Implementations§

Source§

impl<M: TextEngine> Core<M>

Source

pub fn set_class_environment(&mut self, env: ClassEnvironment)

Sets the environment class variants depend on (dark:, ios:, motion-reduce:): nodes whose classes depend on it are styled again.

Source

pub fn set_appearance(&mut self, appearance: Appearance)

The appearance the app asks for (nsh.json "appearance", TS setColorScheme, crate::element::set_color_scheme): what dark: variants and the components’ theme follow in place of the system’s; the platform applies it to its own controls (MountItem::Appearance).

Source

pub fn set_states(&mut self, id: NodeId, states: u16)

The platform reports interaction states of view id (active:, hover:, focus:): state bits for the states it tracks (MountItem::TrackStates), and FOCUSED whatever it tracks (crate::input::reported_states); see crate::tailwind::state.

Source

pub fn release_states_after(&mut self, id: NodeId, states: u16, hold: Duration)

Reports the interaction states of view id after a short completed press, holding state::PRESSED for hold so same-turn tap-to-click releases still render :active feedback before settling to states. Any subsequent state report for id (including a new press or cancellation) supersedes the pending release.

Source

pub fn next_state_timer(&self) -> Option<Instant>

Earliest deadline at which a short press’s held PRESSED state ends.

Source

pub fn expire_state_timers(&mut self, now: Instant) -> bool

Releases any short-press PRESSED impulses due by now; returns whether any state changed.

Source

pub fn set_input_modality(&mut self, modality: InputModality)

The platform reports what the user gave the surface input with last (InputModality), before the focus moves it causes: a key typed while the focus does not show makes it show, as browsers do. A pointer leaves a focus that shows as it is: only a move of the focus decides again (Self::focus_shows). A hint the focus shows is decided only as the focus moves (Self::keyboard_moves_focus): a key typed after a press shows the focus, never the hint of the view it is on.

Source§

impl<M: TextEngine> Core<M>

Source

pub fn set_components(&mut self, registry: Registry)

The components this core can render (from nsh-base and the like), and the design tokens their sets bring (Registry::tokens_from); set before the first op. Runs the sets’ setup functions (Registry::setup).

Source

pub fn extend_components(&mut self, registry: Registry)

Replaces the components of a running core with registry, a superset of what it had (a UI set registered after the app started: a web runtime’s late nsh_part_*). What is mounted from then on may use the new components; the tokens stay the app’s, and only the setup functions the old sets did not bring run.

Source

pub fn set_tokens(&mut self, tokens: Tokens)

The app’s design tokens; it is drawn with them unless the embedding app set its own (Core::set_host_tokens).

Source

pub fn set_translations(&mut self, translations: Translations)

The app’s translations (crate::i18n): what t! and TS’s t read from now on.

Source

pub fn take_locale_request(&mut self) -> Option<Option<Locale>>

The language the app asked to show in since the last call (Some(None): the user’s again), which the engine applies to the environment it gives the core and JS.

Source

pub fn set_host_tokens(&mut self, tokens: Option<Tokens>)

The embedding app’s design tokens (None: the app’s again): an app embedded in a native app looks like it, whatever the app sets. Text inherits its foreground token unless it sets its own color.

Source

pub fn theme_tokens(&self) -> ThemeTokens

What Core::tokens become when the root’s uiTheme (the app’s theme file) is set, with the embedding app’s tokens of now: JS reads them in the turn that sends the theme, before it reaches the core.

Source

pub fn tokens(&self) -> &Arc<Tokens> ⓘ

The design tokens the app is drawn with now: the app’s, under the embedding app’s. A new value (not the same Arc) when they change.

Source

pub fn mount_root(&mut self, root: &Root)

Mounts a Rust app’s root component as the content of the root view; its view is made in the next commit.

Source

pub fn mount_opened_windows(&mut self)

Mounts what renders the windows open_window opens, beside the app’s root (desktops): a Rust app’s (Self::mount_root) or a TSX app’s, whose built-in windows (the update prompt) open the same way.

Source

pub fn set_environment(&mut self, environment: Environment)

The environment components read (crate::element::window and the like), as the platform reports it: what read a part that changed runs again. dark is the system’s: the app’s appearance wins over it (Core::set_appearance).

Source

pub fn set_perf_monitor(&mut self, enabled: bool)

Whether the platform’s performance monitor measures (fpsEnabled()): what read it runs again.

Source

pub fn set_perf_stats(&mut self, stats: Option<PerfStats>)

What the performance monitor measured last (perfStats(); None while it does not measure): what read it runs again.

Source

pub fn set_displays(&mut self, displays: Arc<[Display]>)

The displays components read (crate::element::desktop::displays), as the platform reports them: what read them runs again.

Source

pub fn discard_ops(&mut self, ops: impl IntoIterator<Item = Op>)

Drops ops without applying them (the script was stopped): the calls into Rust among them are not made, and the promises waiting for them reject (their replies are in the next events); a JS call parked behind one is dropped.

Source

pub fn set_posts(&mut self, posts: Posts)

The queue of the JS calls Rust posts: the one the engine hands the script too.

Source

pub fn set_task_notify(&mut self, notify: Arc<dyn Fn() + Send + Sync>)

Wakes the engine when a component’s task is woken (from any thread): it then calls Self::run_component_tasks.

Source

pub fn set_task_runtime(&mut self, runtime: Handle)

The tokio runtime the components’ tasks are polled in the context of (their timers, IO and background work run on it).

Source

pub fn next_task_timer(&self) -> Option<Instant>

When the components’ soonest timer is due (crate::element::timer): the engine wakes then and runs their tasks.

Source

pub fn run_component_tasks(&mut self)

Runs the components’ woken tasks, with the state changes they ask for, until they all wait.

Source

pub fn has_quit_listeners(&self) -> bool

Whether something runs as the app quits (crate::element::desktop::on_app_quit, Application.on("quit")): the engine gives it time to.

Source

pub fn start_quit(&mut self) -> bool

The app quits: starts each quit listener’s work, oldest first, as tasks the engine runs (Core::run_component_tasks) until Core::quit_pending is false or QUIT_TIMEOUT has passed. Whether any started.

Source

pub fn quit_pending(&self) -> bool

Whether the work quit listeners started is still running.

Source

pub fn async_calls_pending(&self) -> bool

Whether a JS call of an async fn into Rust (a native module’s, a class’s) has not answered yet: its answer comes from elsewhere (a request made in Rust, another thread), which nothing else counts.

Source

pub fn component_event( &mut self, id: NodeId, kind: EventKind, payload: &EventPayload, ) -> bool

A native event on node id: true when a component handled it (its own parts’ events never reach JS, which does not know them).

Source

pub fn set_url_schemes( &mut self, schemes: impl IntoIterator<Item = impl Into<String>>, )

The schemes the app claims (nsh.json schemes, crate::url_scheme), from the app’s own resources: the links the platform reports of other schemes are dropped. None by default. Core::set_app_links sets them with the app’s web links.

The links the app claims (nsh.json schemes and links, crate::url_scheme::AppLinks), from the app’s own resources: the links the platform reports that are none of them (another scheme, an https link of another host or path) are dropped. None by default.

Source

pub fn download_deadline(&self) -> Option<Instant>

When the downloads’ next deadline is due (the engine wakes then).

Source

pub fn animations_finished(&mut self, finished: &mut Vec<Finished>)

Native animations that ended: the components’ resolve their crate::element::AnimationEnds; JS’s stay in finished.

Source

pub fn take_url_opens(&mut self, out: &mut Vec<(u32, String)>)

Moves the URLs the app asked to open (openUrl, crate::element::open_url) since the last call to out, by request id, checked and granted (crate::open_url). The engine asks the embedding app first, then answers each with Core::answer_open_url (the embedding app took it) or Core::open_url_on_platform.

Source

pub fn answer_open_url(&mut self, id: u32, opened: bool)

Answers URL request id: whether the URL opened.

Source

pub fn open_url_on_platform(&mut self, id: u32, url: String)

Hands URL request id to the platform, which opens url and reports whether it did (crate::EventKind::OpenUrl on the root).

Source

pub fn take_fetches( &mut self, start: &mut Vec<(u32, HttpRequest)>, abandoned: &mut Vec<u32>, )

Moves the HTTP requests tasks made (ui::fetch) since the last call to start, by request id: the engine makes them with its network stack and reports what happens with Core::fetch_event. Requests nothing waits for any more (their task ended) go to abandoned, for the engine to cancel.

Source

pub fn fetch_event(&mut self, id: u32, event: FetchEvent) -> bool

What happened to the tasks’ request id; false when nothing waits for it any more (the task ended, or the request is over): the engine then cancels it.

Source

pub fn fetch_refused(&mut self, id: u32, message: String, url: String)

Fails the tasks’ request id, which the app’s capabilities do not grant: url is the URL refused, the request’s or a redirect’s (the engine checks every hop), message why. A task’s fetch fails with the message; a module function’s call rejects with ERR_ACCESS_DENIED, permission "network" and resource the URL, as JS’s fetch does (registerFont).

Source§

impl<M: TextEngine> Core<M>

Source

pub fn set_content_culling(&mut self, enabled: bool)

Whether scroll views mount their content as it comes near (cull.rs, the default), or all of it as it is made: what a test driver reads (nsh test’s steps reach every view of a page, as they always did). Turned off, what is culled is made in the next commit.

Source§

impl<M: TextEngine> Core<M>

Source

pub fn measure(&self, id: NodeId) -> Option<Measurement>

Where view id is, from the last layout; None when it is not in the tree or was never laid out.

Source

pub fn locate_caret(&self, id: NodeId, payload: &mut EventPayload)

Completes an input’s onCaretMove payload from its platform: adds pageBounds, its bounds (in the input) moved by where the input is in its root view. The platforms know the caret in their text views, the core where the input is (ref.measure()’s pagePosition, with the scroll views around it).

Source

pub fn locate_selection(&self, id: NodeId, payload: &mut EventPayload)

Completes a selectable view’s onSelectionChange payload from its platform: adds pageBounds, its bounds (the selected text in the view) moved by where the view is in its root view, as Self::locate_caret does for a caret. A payload without bounds (nothing selected, an input’s selection) stays as it is.

Source

pub fn list_scroll_position(&self, id: NodeId) -> Option<ListScrollPosition>

Where list id’s viewport starts among its rows, from the last layout; None when it is no list in the tree, is not laid out or has no items.

Source§

impl<M: TextEngine> Core<M>

Source

pub fn context_menu_presses_outside( &mut self, id: NodeId, event: &ContextMenuEvent, ) -> Vec<(NodeId, EventPayload)>

A context menu asked for on id: a secondary click goes down as a press does, so the shown overlays it is outside of hear onPressOutside (a menu open elsewhere closes as a new one opens). The platforms send no touch for a secondary click; a menu asked for by the keyboard or an assistive technology is no press, nor is a long press, whose touch went down already.

Returns those onPressOutside events (each overlay and its payload) for the caller to hand out before onContextMenu itself, as a press outside comes before what the press does: a context menu open on the view closes before the view asks for one again, which then opens where the pointer is.

Source

pub fn presses_on_native( &mut self, id: NodeId, page: Point<Points>, ) -> Vec<(NodeId, EventPayload)>

A press at page that went to view id’s hosted native content (a web view’s page takes its presses, and the platform does not pick them through the core): the shown overlays watching presses that id is outside of hear onPressOutside, as for a press on any other view.

Returns those events for the caller to hand out, as Core::context_menu_presses_outside.

Source

pub fn presses_beyond_root( &mut self, page: Point<Points>, ) -> Vec<(NodeId, EventPayload)>

A press beyond the root view, at page in its coordinates: on what is around the surface, where the platform draws the root view’s anchored overlays too (the web page around the player’s container, overlays: "viewport"). It misses every view, so each shown overlay watching presses hears onPressOutside, as a press in the root view outside it.

Returns those events (each overlay and its payload) for the caller to hand out, as Core::context_menu_presses_outside.

Source§

impl<M: TextEngine> Core<M>

Source

pub fn begin_mount_turn(&mut self)

A turn of the engine begins: the commits up to the next one share one budget of views. Without it, every commit is a turn.

Source

pub fn hold_paced_mounts(&mut self)

This turn is not a display frame’s: waiting views out of sight stay waiting, for the next frame’s turn (what shows is still made at once). Call after Core::begin_mount_turn. Without it, every turn makes a slice of what waits, and the turns between two frames (a timer, a message from the main thread) each commit one more.

Source

pub fn has_paced_mounts(&self) -> bool

Whether views wait to be made in a later turn: ask the platform for a display frame, and commit in it.

Source§

impl<M: TextEngine> Core<M>

Source

pub fn wants_frame(&self) -> bool

Whether a component waits for a display frame: ask the platform for one, then call Self::run_frame when it begins.

Source

pub fn run_frame(&mut self, at: Instant)

A display frame began at at: the tasks waiting for it go on (at the next Self::run_component_tasks).

Source§

impl<M: TextEngine + 'static> Core<M>

Source

pub fn new(text_engine: M, viewport: Size<Points>) -> Self

Creates a core whose root view (id ROOT_ID) fills viewport.

Source§

impl<M: TextEngine> Core<M>

Source

pub fn set_header_heights(&mut self, normal: Points, large: Points)

Sets the height of the platform’s screen header bar, normal and with a large title (status bar excluded).

Source

pub fn set_safe_area(&mut self, insets: EdgeInsets)

Sets the surface’s safe-area insets.

Source

pub fn set_overlay_area(&mut self, area: Option<Bounds<Points>>)

Where the root view’s anchored overlays may be placed, in its coordinates, when the platform shows them beyond the root view: the web’s overlays: "viewport" draws them over the browser window, so this is the window’s rectangle (less its safe area) relative to the container. They are placed and flipped within it, less their margin, rather than within the root view’s safe area. None (the default) keeps them to the root view. Overlays without an anchor and those of modals are laid out as before.

Source

pub fn set_snap_to_window_margin(&mut self, margin: Points)

The distance the overlays without a margin of their own (menus, popovers, tooltips, popups) keep from the edges of the window’s safe area (crate::element::set_snap_to_window_margin): they are placed, flipped and shrunk within it, so none touches the window’s edge.

Source

pub fn set_root_size( &mut self, id: NodeId, size: Size<Points>, insets: EdgeInsets, )

The platform presents root id (a modal) at size, with insets of it covered by system UI.

Source

pub fn set_screen_header(&mut self, id: NodeId, height: Option<Points>)

The platform measured where the content of screen id starts below the header it shows (None: estimate it from the bar’s height and the safe area). Used for screens that lay their content out below the header (not large titles or transparent headers).

Source

pub fn set_font_scale(&mut self, scale: f32)

Sets the user’s preferred text size (1.0 is the default): text that allows font scaling is laid out again.

Source

pub fn node_count(&self) -> usize

Number of live nodes, including the root.

Source

pub fn node_id_room(&self) -> usize

How many node ids the core’s id table has room for: far above Self::node_count when the ids of nodes that are gone still take room (diagnostics).

Source

pub fn set_access(&mut self, access: Arc<Access>)

Sets what the app may reach: remote images, canvas images, video sources, web views and the status bar are checked against it.

Source

pub fn set_base_url(&mut self, url: Option<Arc<str>>)

Sets the URL media sources starting with // resolve against, whose scheme they take (the page’s on the web, as fetch’s relative URLs). Without one such a source names no URL, and only an app without capabilities loads it (crate::access::Access::media_url). A base marks a page: with one, /x and relative paths are the page’s, not local files, so only pages set one.

Source

pub fn set_media_files(&mut self, files: Arc<MediaFiles>)

Sets the capabilities.fs.read roots the app’s local media files (absolute paths, file: URLs) are read under; without them such a source of an app with capabilities loads nothing (crate::access::Access::media_url).

Source

pub fn set_image_context(&mut self, context: Context)

Sets what the core’s own image loads (an crate::element::svg’s bytes) go through: the app’s bundled files, access policy and disk cache. Without it they read inline bytes, files and asset:/ URIs of no base only.

Source

pub fn set_clipboard(&mut self, backend: Option<Arc<dyn ClipboardBackend>>)

Serves the app’s clipboard calls from backend instead of the platform’s clipboard (None: the platform’s, the default).

Source

pub fn set_picker(&mut self, backend: Option<Arc<dyn PickerBackend>>)

Answers the app’s picks (Picker.pickImages) with backend, an embedding app’s own picker or a test’s files, instead of showing the platform’s picker (None: the platform’s, the default).

Source

pub fn set_quit_mode(&mut self, mode: QuitMode)

Sets an explicit quit mode when the app’s last window closes (nsh.json application.quitMode, Application.setQuitMode). Overrides the implicit main window’s default quit-on-close behavior.

Source

pub fn set_main_window(&mut self, options: &MainWindowOptions)

The main window’s launch-time options (nsh.json "window"): its attributes go to the main window with the next commit, as currentWindow().set() sends them (capabilities apply); with restoreBounds its placement is kept from then on as the platform reports it (the environment’s window state), for the next launch to open it there (crate::desktop::MainWindowOptions::kept_placement). Set it after the environment (Core::set_environment): a surface without a window, a phone’s, takes no attributes.

Source

pub fn set_window_backend(&mut self, backend: Option<Arc<dyn WindowBackend>>)

Opens and applies the app’s windows of its own with backend, an embedding host’s windows or a test’s fake, instead of the platform (None: the platform’s, the default). The main window’s commands stay with the platform.

Source

pub fn set_audio(&mut self, backend: Option<Arc<dyn AudioBackend>>)

Plays the app’s sound (Sound, AudioPlayer) with backend, an embedding app’s own audio stack or a test’s fake, instead of the platform’s (None: the platform’s, the default).

Source

pub fn set_login_item(&mut self, backend: Option<Arc<dyn LoginItemBackend>>)

Reads and changes the app’s login item (Application.launchAtLogin) with backend: the platform’s, which a standalone app’s runner gives, or a test’s fake. None (the default): the app has no login item, it does not launch at login (crate::desktop::LoginItemBackend).

Source

pub fn set_storage(&mut self, backend: Option<Arc<dyn StorageBackend>>)

Keeps the app’s storage (nsh/storage) in backend; None: in memory, for the core’s life.

Source

pub fn set_data_dir(&mut self, dir: Option<PathBuf>)

The app’s own data directory, what crate::element::data_dir gives; None: it has none.

Source

pub fn set_app_info(&mut self, info: Option<AppInfo>)

The app as it was built, what crate::element::app_info answers (a Rust app’s root’s, crate::element::Root::app_info); None: the runner has none (a TSX app’s is JS’s appInfo()).

Source

pub fn set_updater(&mut self, updater: Option<Arc<dyn UpdaterHost>>)

What Rust code checks for updates with (crate::runtime::prompt_for_update); None: the app does not update. A JS app’s VM gets its own (crate::element::System).

Source

pub fn set_max_nodes(&mut self, max: usize)

Caps the number of nodes (each may hold a native view, whose memory no JS heap limit covers): creating more is a fatal ApplyError.

Source

pub fn set_resizing(&mut self, resizing: bool)

A burst of resizes began (true) or ended. Meanwhile only text near the screen is measured and laid out at new widths: what is far from it keeps its height, and catches up in the commit after the end. A window’s drag gets its frames from what the user sees; a long page has far more text than the screen shows.

Source

pub fn set_viewport(&mut self, viewport: Size<Points>)

Changes the size of the root view.

Source

pub fn set_scroll_offset( &mut self, id: NodeId, offset: Point<Points>, applied: u32, )

The platform scrolled a scroll view or list to (x, y), having applied applied of the scrolls the core issued to it (MountItem::ScrollBy and Command::ScrollTo of lists).

Source

pub fn key_scrolled(&mut self, id: NodeId, key_move: KeyMove)

The user moved scroll view id with scroll key move key_move, which the platform animates to what it knows of the content. On a list of its own End queues an animated scrollToEnd, in order with the app’s scroll commands, so the list follows its end and rows below that were never rendered, sized by their estimate, do not stop it short; a repeat while the list follows its end changes nothing. Any other key takes back an End not resolved yet and ends the target the list followed, as the user scrolling away does. Lists in their parent’s viewport and inverted lists are left to the platform.

Source

pub fn set_kept(&mut self, nodes: &[NodeId])

Keeps the rows of virtual lists that hold nodes rendered, out of the render window too, until the next call: the ends of a text selection across a list’s rows, whose texts must outlive scrolling away (a recycled cell would show another row). Replaces the last call’s; none releases them. The rows holding the keyboard focus or an open overlay are kept anyway (Core::sync_kept).

Source

pub fn set_input_scroll( &mut self, id: NodeId, offset: Point<Points>, content: Size<Points>, viewport: Size<Points>, )

The platform scrolled the text of multiline input id to offset, its text content large in a viewport (reported while a built-in bar or a scroll watch follows it, InputConfig::report_scroll).

Source

pub fn set_zoom(&mut self, id: NodeId, scale: f32)

The platform zoomed scroll view id to scale.

Source

pub fn set_component_size(&mut self, id: NodeId, size: Size<Points>)

A registered native component reported its own size: it is laid out at it where its style leaves a dimension open.

Source

pub fn scroll_listener( &self, id: NodeId, ) -> Option<(f32, Size<Points>, Size<Points>, f32)>

What onScroll reports for scroll view id, if it listens to it: the minimum milliseconds between events, the content size (zoomed), the viewport size and the zoom scale.

Source

pub fn take_list_binds(&mut self, out: &mut Vec<ListBind>)

Moves list render requests produced by the last commit into out: what must bind before the frame shows (cells whose item moved, cells in the viewport and just ahead of it). The rest of the overscan waits (Core::take_paced_list_binds).

Source

pub fn has_paced_list_binds(&self) -> bool

Whether lists have overscan cells waiting to bind.

Source

pub fn take_paced_list_binds(&mut self, cells: usize, out: &mut Vec<ListBind>)

Hands out up to cells of the overscan cells waiting to bind, one per list in turn (a nested list is not starved by its parent), each list’s nearest its leading edge first. What a list assigns now is what waits: cells it left or whose items went are never handed out.

Source

pub fn has_events(&self) -> bool

Whether events wait for Core::take_events.

Source

pub fn take_events(&mut self, out: &mut Vec<JsEvent>)

Moves what the core hands JS (events it raised, such as onLoadMore and onLayout, Rust components’ events, calls’ results) into out, in order.

Source

pub fn has_due_answers(&self) -> bool

Whether the next commit runs closures that waited for the app’s answer to events taken already (crate::element::after_answer): the engine commits again rather than leave them for later input.

Source

pub fn register_font(&mut self, data: &[u8]) -> Result<(), String>

Registers a custom font (TrueType, OpenType, WOFF or WOFF2 data) with the text engine. Text measured before is measured again.

Source

pub fn fonts_changed(&mut self)

The text engine’s fonts changed (a font the platform loads asynchronously became usable): text measured before is measured again.

Source

pub fn remount(&mut self)

The platform’s views must get everything again, as new views do, and text is measured again: the unit the platform converted the values with changed (Android’s density). The views stay, scrolled where they are.

Source

pub fn limit_paste(&self, id: NodeId, payload: &mut EventPayload)

A paste into input id (onPaste): its files larger than the input’s pasteMaxSize go to crate::PasteEvent::too_large, whichever platform read them, so every platform gives the app the same files.

Source

pub fn input_changed(&mut self, id: NodeId, text: &str, count: u32)

The user edited input id (before JS sees the edit): keeps the text for layout and for stale-value detection.

Source

pub fn input_composing(&mut self, id: NodeId, shown: Option<&str>)

An input method composes in input id: shown is what the input shows meanwhile (its text with the composition at the caret), None once the composition ends. The input is measured with it, so it grows as the composition wraps; its value and edit count stay as they are (the platform reports the committed text as an edit).

Source

pub fn apply(&mut self, op: Op) -> Result<(), ApplyError>

Applies one op from JS.

Source

pub fn content_height(&self) -> Option<Points>

The bottom edge of the logical root’s in-flow children, in surface points.

Read after Self::commit for settled geometry, from the same frames reported to layout listeners. Detached layout roots (such as overlays and modals) and fixed or absolutely positioned children do not contribute. None means there is no laid-out in-flow content. This does not run an intrinsic-size pass or change the viewport.

Source

pub fn commit(&mut self) -> Option<MountBatch>

Finishes a turn: rebuilds text, runs layout, updates lists and returns the mount items, or None when nothing changed.

Source

pub fn set_tree_order_tracking(&mut self, enabled: bool)

Include logical document order in mount batches for a platform’s focus traversal. Native sibling insertions describe paint order and can differ because of zIndex.

Source

pub fn set_projected_state_mounting(&mut self, enabled: bool)

Mount the states views show as parts of a control (MountItem::ProjectStates: a list’s highlighted option, the code input’s next cell) for a platform that marks them itself, as a terminal does: elsewhere the app’s classes alone show them. Set before the first commit.

Auto Trait Implementations§

§

impl<M> !RefUnwindSafe for Core<M>

§

impl<M> !Send for Core<M>

§

impl<M> !Sync for Core<M>

§

impl<M> !UnwindSafe for Core<M>

§

impl<M> Forget for Core<M>

§

impl<M> Freeze for Core<M>
where *const u8 is !null: Freeze, PhantomData<Entry<Node>>: Freeze, PhantomData<Option<Page<u32>>>: Freeze, PhantomData<(u32, Run)>: Freeze, PhantomData<(u32, u32)>: Freeze, PhantomData<Entry<LayoutNode<LeafContext<<M as TextEngine>::Prepared>>>>: Freeze, PhantomData<NodeId>: Freeze, PhantomData<String>: Freeze, *const (): Freeze, PhantomData<GridTemplateComponent<String>>: Freeze, PhantomData<MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>>: Freeze, PhantomData<GridTemplateArea<String>>: Freeze, PhantomData<Vec<String>>: Freeze, PhantomData<u8>: Freeze, PhantomData<Rc<Style>>: Freeze, *const RcInner<Style> is !null: Freeze, PhantomData<RcInner<Style>>: Freeze, *const RcInner<M> is !null: Freeze, PhantomData<RcInner<M>>: Freeze, *const RcInner<dyn GeometryEngine> is !null: Freeze, PhantomData<RcInner<dyn GeometryEngine>>: Freeze, PhantomData<(u32, TextGeometry)>: Freeze, PhantomData<((u64, u32), Size<Points>)>: Freeze, PhantomData<u32>: Freeze, PhantomData<(u32, f32, f32, f32, f32)>: Freeze, PhantomData<(u32, Def)>: Freeze, PhantomData<(u32, Bounds<Points>)>: Freeze, PhantomData<(u32, f32)>: Freeze, PhantomData<(u32, ())>: Freeze, *const RcInner<dyn Any> is !null: Freeze, PhantomData<RcInner<dyn Any>>: Freeze, PhantomData<Relator>: Freeze, PhantomData<(u64, Result<Shader, ShaderError>)>: Freeze, PhantomData<((u32, u32), ())>: Freeze, PhantomData<MountItem>: Freeze, PhantomData<(Box<str>, u32)>: Freeze, PhantomData<ListBind>: Freeze, PhantomData<JsEvent>: Freeze, *const Retags is !null: Freeze, PhantomData<Retags>: Freeze, PhantomData<(u32, Command)>: Freeze, PhantomData<(u32, Option<(u32, u32)>)>: Freeze, PhantomData<(u32, LayoutTransition, bool)>: Freeze, PhantomData<(u32, u8)>: Freeze, *const ArcInner<Keymap> is !null: Freeze, PhantomData<ArcInner<Keymap>>: Freeze, PhantomData<(u32, u32, Instant)>: Freeze, PhantomData<(u32, Vec<u32>)>: Freeze, PhantomData<((Option<FontFamily>, u32, u16, bool), f32)>: Freeze, PhantomData<(Box<str>, Color)>: Freeze, PhantomData<(Box<str>, f32, bool)>: Freeze, PhantomData<(Box<str>, f32)>: Freeze, PhantomData<(Box<str>, (f32, Option<f32>))>: Freeze, PhantomData<(Box<str>, u16)>: Freeze, PhantomData<(Box<str>, Option<Box<str>>)>: Freeze, PhantomData<(Box<str>, Vec<BoxShadow>)>: Freeze, PhantomData<(Box<str>, Vec<TextShadow>)>: Freeze, PhantomData<(Box<str>, [f32; 4])>: Freeze, *const ArcInner<ClassTokens> is !null: Freeze, PhantomData<ArcInner<ClassTokens>>: Freeze, PhantomData<(Box<str>, Rc<ClassList>)>: Freeze, PhantomData<(Box<str>, Option<Token>)>: Freeze, PhantomData<(ResolvedKey, Rc<ResolvedClassStyle>)>: Freeze, *const ArcInner<Access> is !null: Freeze, PhantomData<ArcInner<Access>>: Freeze, *const ArcInner<str> is !null: Freeze, PhantomData<ArcInner<str>>: Freeze, *const ArcInner<MediaFiles> is !null: Freeze, PhantomData<ArcInner<MediaFiles>>: Freeze, PhantomData<(Arc<str>, Option<Arc<str>>)>: Freeze, PhantomData<(String, ())>: Freeze, PhantomData<(u32, WindowRecord)>: Freeze, PhantomData<(String, (u32, bool))>: Freeze, *const ArcInner<dyn ClipboardBackend> is !null: Freeze, PhantomData<ArcInner<dyn ClipboardBackend>>: Freeze, *const ArcInner<dyn PickerBackend> is !null: Freeze, PhantomData<ArcInner<dyn PickerBackend>>: Freeze, *const ArcInner<dyn WindowBackend> is !null: Freeze, PhantomData<ArcInner<dyn WindowBackend>>: Freeze, *const ArcInner<dyn AudioBackend> is !null: Freeze, PhantomData<ArcInner<dyn AudioBackend>>: Freeze, *const ArcInner<dyn LoginItemBackend> is !null: Freeze, PhantomData<ArcInner<dyn LoginItemBackend>>: Freeze, *mut Counter<Channel<(Option<bool>, Sender<Result<LoginItemStatus, Error>>)>>: Freeze, *mut Counter<Channel<(Option<bool>, Sender<Result<LoginItemStatus, Error>>)>>: Freeze, *mut Counter<Channel<(Option<bool>, Sender<Result<LoginItemStatus, Error>>)>>: Freeze, PhantomData<(u32, Pending)>: Freeze, PhantomData<(u32, Pending)>: Freeze, *const ArcInner<HashMap<&'static str, ComponentType, FxBuildHasher>> is !null: Freeze, PhantomData<ArcInner<HashMap<&'static str, ComponentType, FxBuildHasher>>>: Freeze, *const ArcInner<HashMap<&'static str, ModuleType, FxBuildHasher>> is !null: Freeze, PhantomData<ArcInner<HashMap<&'static str, ModuleType, FxBuildHasher>>>: Freeze, *const ArcInner<HashMap<(Option<&'static str>, &'static str), ClassType, FxBuildHasher>> is !null: Freeze, PhantomData<ArcInner<HashMap<(Option<&'static str>, &'static str), ClassType, FxBuildHasher>>>: Freeze, *const ArcInner<(Vec<&'static str>, Vec<&'static str>)> is !null: Freeze, PhantomData<ArcInner<(Vec<&'static str>, Vec<&'static str>)>>: Freeze, *const ArcInner<Vec<&'static str>> is !null: Freeze, PhantomData<ArcInner<Vec<&'static str>>>: Freeze, &'static str: Freeze, *const ArcInner<Vec<(&'static [Os], &'static [AssetFile])>> is !null: Freeze, PhantomData<ArcInner<Vec<(&'static [Os], &'static [AssetFile])>>>: Freeze, *const ArcInner<Vec<Registry>> is !null: Freeze, PhantomData<ArcInner<Vec<Registry>>>: Freeze, *const ArcInner<Vec<Arc<dyn Fn() + Send + Sync>>> is !null: Freeze, PhantomData<ArcInner<Vec<Arc<dyn Fn() + Send + Sync>>>>: Freeze, *const ArcInner<Vec<(&'static str, Arc<dyn Fake>)>> is !null: Freeze, PhantomData<ArcInner<Vec<(&'static str, Arc<dyn Fake>)>>>: Freeze, *const ArcInner<Vec<(&'static str, GpuSource)>> is !null: Freeze, PhantomData<ArcInner<Vec<(&'static str, GpuSource)>>>: Freeze, PhantomData<(&'static str, Arc<ComponentSpec>)>: Freeze, *const ArcInner<Tokens> is !null: Freeze, PhantomData<ArcInner<Tokens>>: Freeze, PhantomData<(u32, Box<Instance>)>: Freeze, PhantomData<(u32, ByName)>: Freeze, PhantomData<(u32, Arc<str>)>: Freeze, PhantomData<(u32, SlotTarget)>: Freeze, PhantomData<(StyleRefinement, Rc<ClassList>)>: Freeze, PhantomData<((usize, usize), [Rc<ClassList>; 3])>: Freeze, PhantomData<(u32, (Rc<dyn Fn(Child, Position) -> AnyElement>, u32))>: Freeze, *const RcInner<Executor> is !null: Freeze, PhantomData<RcInner<Executor>>: Freeze, PhantomData<(u32, (Owner, WindowRef))>: Freeze, PhantomData<(u32, (Option<WindowState>, Edges<Points>))>: Freeze, PhantomData<(u64, StatusBarSetting)>: Freeze, PhantomData<(u32, Rc<RefCell<Output<DialogReply>>>)>: Freeze, PhantomData<(u32, Rc<RefCell<Output<Result<ImageSize, String>>>>)>: Freeze, PhantomData<(u32, ClipboardRead)>: Freeze, PhantomData<(u32, (Pick, Rc<RefCell<Output<Vec<PickedFile>>>>))>: Freeze, PhantomData<(u32, AudioSink)>: Freeze, PhantomData<(u32, Rc<RefCell<Output<NotificationPermission>>>)>: Freeze, PhantomData<(u32, Rc<RefCell<Output<bool>>>)>: Freeze, *const RcInner<RefCell<Output<String>>> is !null: Freeze, PhantomData<RcInner<RefCell<Output<String>>>>: Freeze, PhantomData<WebLink>: Freeze, PhantomData<(u64, String)>: Freeze, PhantomData<(u64, u64)>: Freeze, PhantomData<(Option<u64>, Rc<RefCell<Output<String>>>)>: Freeze, PhantomData<(String, Rc<RefCell<Output<String>>>)>: Freeze, PhantomData<AppUrlChange>: Freeze, *const RcInner<RefCell<Output<AppUrlChange>>> is !null: Freeze, PhantomData<RcInner<RefCell<Output<AppUrlChange>>>>: Freeze, *const RcInner<RefCell<AppUrlState>> is !null: Freeze, PhantomData<RcInner<RefCell<AppUrlState>>>: Freeze, PhantomData<SecondInstance>: Freeze, *const RcInner<RefCell<Output<SecondInstance>>> is !null: Freeze, PhantomData<RcInner<RefCell<Output<SecondInstance>>>>: Freeze, PhantomData<PathBuf>: Freeze, *const RcInner<RefCell<Output<Vec<PathBuf>>>> is !null: Freeze, PhantomData<RcInner<RefCell<Output<Vec<PathBuf>>>>>: Freeze, PhantomData<(u64, Rc<RefCell<Output<Result<Value, HostError>>>>)>: Freeze, PhantomData<HostRequest>: Freeze, PhantomData<(String, Value)>: Freeze, PhantomData<Rc<RefCell<Output<ClipboardWrite>>>>: Freeze, PhantomData<(u32, String)>: Freeze, PhantomData<MainThreadTask>: Freeze, PhantomData<(u32, Rc<RefCell<Output<Result<bool, AppSettingsError>>>>)>: Freeze, PhantomData<(u32, Rc<RefCell<Output<Option<Hsla>>>>)>: Freeze, PhantomData<(u32, FileAnswer)>: Freeze, PhantomData<(u32, PendingFetch)>: Freeze, PhantomData<(u32, HttpRequest)>: Freeze, PhantomData<(u32, Awaited)>: Freeze, PhantomData<(u32, Rc<RefCell<Output<Option<Measurement>>>>)>: Freeze, PhantomData<(u32, Rc<RefCell<Output<Option<ListScrollPosition>>>>)>: Freeze, PhantomData<(u32, Rc<RefCell<Output<Duration>>>)>: Freeze, PhantomData<(u32, Rc<RefCell<Output<String>>>)>: Freeze, PhantomData<(u32, PressEvent, Rc<RefCell<Output<bool>>>)>: Freeze, PhantomData<(u32, Option<MouseEvent>)>: Freeze, PhantomData<(Key, Session)>: Freeze, PhantomData<(u64, Tracked)>: Freeze, *const ArcInner<Mutex<VecDeque<Signal>>> is !null: Freeze, PhantomData<ArcInner<Mutex<VecDeque<Signal>>>>: Freeze, *const ArcInner<Mutex<Option<Arc<dyn Fn() + Send + Sync>>>> is !null: Freeze, PhantomData<ArcInner<Mutex<Option<Arc<dyn Fn() + Send + Sync>>>>>: Freeze, *const ArcInner<Atomic<bool>> is !null: Freeze, PhantomData<ArcInner<Atomic<bool>>>: Freeze, *mut Counter<Channel<Job>>: Freeze, *mut Counter<Channel<Job>>: Freeze, *mut Counter<Channel<Job>>: Freeze, *const ArcInner<Mutex<CleanupState>> is !null: Freeze, PhantomData<ArcInner<Mutex<CleanupState>>>: Freeze, PhantomData<(u32, VirtualListState)>: Freeze, PhantomData<(u32, u32, Box<dyn FnOnce(&(dyn Any + 'static)) -> Option<Result<Box<dyn ToJs>, Thrown>>>)>: Freeze, PhantomData<(u32, (Owner, Signal<usize>))>: Freeze, PhantomData<(u32, ListConfig)>: Freeze, PhantomData<(u32, Edges<Points>)>: Freeze, PhantomData<(u32, Vec<(u32, u32)>)>: Freeze, PhantomData<Rc<RefCell<Output<Instant>>>>: Freeze, PhantomData<Prop>: Freeze, *const UnsafeCell<Graph<Rust>> is !null: Freeze, PhantomData<UnsafeCell<Graph<Rust>>>: Freeze, *const RcInner<RefCell<Vec<Patch>>> is !null: Freeze, PhantomData<RcInner<RefCell<Vec<Patch>>>>: Freeze, PhantomData<(u32, RegionState)>: Freeze, *const RcInner<PostsInner> is !null: Freeze, PhantomData<RcInner<PostsInner>>: Freeze, PhantomData<(u32, Rc<RenderPlace>)>: Freeze, PhantomData<((u32, Arc<str>), RenderSlot)>: Freeze, PhantomData<(u32, (Arc<str>, u32))>: Freeze, PhantomData<(u32, (Option<Rc<ClassList>>, SharedString, Option<Rc<ClassList>>))>: Freeze, PhantomData<(u32, CoreTooltip)>: Freeze,

§

impl<M> Move for Core<M>

§

impl<M> Unpin for Core<M>
where *const u8 is !null: Unpin, Box<Style>: Unpin, Rc<ViewStyle>: Unpin, Rc<TextStyle>: Unpin, Rc<PaintStyle>: Unpin, Arc<Drawing>: Unpin, Box<ShaderNode>: Unpin, *const (): Unpin, Box<str>: Unpin, Box<PropertyValue>: Unpin, Box<[(TransformKind, f32, Option<u32>)]>: Unpin, Rc<[(BoxShadow, bool)]>: Unpin, Rc<[Gradient]>: Unpin, Rc<[(Filter, bool)]>: Unpin, Arc<[Points]>: Unpin, Rc<(Vec<GridTemplateComponent<String>>, Vec<Vec<String>>)>: Unpin, Rc<[MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>]>: Unpin, Box<ClassNames>: Unpin, Rc<ClassList>: Unpin, Rc<ClassProps>: Unpin, Box<[&'static str]>: Unpin, Box<NodeParts>: Unpin, Box<Rect<LengthPercentageAuto>>: Unpin, Box<Following>: Unpin, Box<[Edges<Points>; 2]>: Unpin, Box<(EnvEdges, [Edges<Points>; 2])>: Unpin, Arc<str>: Unpin, Box<ViewProps>: Unpin, Box<ImageState>: Unpin, Box<ScrollState>: Unpin, Box<ListState>: Unpin, Box<InputState>: Unpin, Box<RootState>: Unpin, Box<NativeProps>: Unpin, Box<ComponentState>: Unpin, Box<[Option<u32>]>: Unpin, Rc<Style>: Unpin, Box<Vec<OofCandidate>>: Unpin, Align2<u16>: Unpin, Box<DetailedGridInfo>: Unpin, Box<LeafContext<<M as TextEngine>::Prepared>>: Unpin, Rc<M>: Unpin, Rc<dyn GeometryEngine>: Unpin, Arc<dyn Any + Send + Sync>: Unpin, Arc<AttributedText>: Unpin, Arc<[u32]>: Unpin, Box<[f32]>: Unpin, Rc<dyn Any>: Unpin, Rc<Target>: Unpin, Arc<Program>: Unpin, Box<ViewStyle>: Unpin, Arc<dyn AsRef<[u8]> + Send + Sync>: Unpin, Arc<Rgba>: Unpin, Arc<Keymap>: Unpin, Box<ScrollBehavior>: Unpin, Arc<ShaderLayer>: Unpin, Box<Composite>: Unpin, Box<InputConfig>: Unpin, Box<ScreenConfig>: Unpin, Box<WebProps>: Unpin, Box<VideoProps>: Unpin, *const LeafNode<String, Value> is !null: Unpin, Box<(String, Value)>: Unpin, Arc<Tokens>: Unpin, Box<AlertDialogRequest>: Unpin, Box<FileRequest>: Unpin, Box<DesktopCommand>: Unpin, &'static str: Unpin, Box<TouchEvent>: Unpin, Box<FileContents>: Unpin, Box<PasteEvent>: Unpin, Box<TextDrop>: Unpin, Box<WindowEvent>: Unpin, Rc<dyn Fn(&EventPayload)>: Unpin, Box<dyn EventToJs>: Unpin, Rc<dyn RenderValue>: Unpin, Rc<dyn CallbackHandle>: Unpin, Box<dyn ToJs>: Unpin, Box<ErrorFields>: Unpin, Box<Retags>: Unpin, Arc<ClassTokens>: Unpin, Rc<[Decl]>: Unpin, Box<Rule>: Unpin, Rc<ResolvedClassStyle>: Unpin, Arc<Access>: Unpin, Arc<MediaFiles>: Unpin, Arc<dyn ClipboardBackend>: Unpin, Arc<dyn PickerBackend>: Unpin, Arc<dyn WindowBackend>: Unpin, Arc<dyn AudioBackend>: Unpin, Arc<dyn LoginItemBackend>: Unpin, *mut Counter<Channel<(Option<bool>, Sender<Result<LoginItemStatus, Error>>)>>: Unpin, *mut Counter<Channel<(Option<bool>, Sender<Result<LoginItemStatus, Error>>)>>: Unpin, *mut Counter<Channel<(Option<bool>, Sender<Result<LoginItemStatus, Error>>)>>: Unpin, Rc<RefCell<Output<Result<Evaluation, JsError>>>>: Unpin, *const RcInner<Executor> is !null: Unpin, Rc<RefCell<Output<()>>>: Unpin, Rc<RefCell<Output<Result<Vec<u8>, JsError>>>>: Unpin, Arc<HashMap<&'static str, ComponentType, FxBuildHasher>>: Unpin, Arc<HashMap<&'static str, ModuleType, FxBuildHasher>>: Unpin, Arc<HashMap<(Option<&'static str>, &'static str), ClassType, FxBuildHasher>>: Unpin, Arc<(Vec<&'static str>, Vec<&'static str>)>: Unpin, Arc<Vec<&'static str>>: Unpin, Arc<Vec<(&'static [Os], &'static [AssetFile])>>: Unpin, Arc<Vec<Registry>>: Unpin, Arc<Vec<Arc<dyn Fn() + Send + Sync>>>: Unpin, Arc<Vec<(&'static str, Arc<dyn Fake>)>>: Unpin, Arc<Vec<(&'static str, GpuSource)>>: Unpin, Arc<ComponentSpec>: Unpin, Box<Instance>: Unpin, Box<dyn AnyProps>: Unpin, Rc<StylePatch>: Unpin, Arc<Value>: Unpin, Rc<ListDiff>: Unpin, Arc<[Keystroke]>: Unpin, Arc<dyn Fn(WebResourceRequest) + Send + Sync>: Unpin, Box<RareAttrs>: Unpin, Rc<Vec<(Variant, Declaration)>>: Unpin, Rc<dyn Fn(&mut StyleRefinement)>: Unpin, Rc<dyn Fn(Child, Position) -> AnyElement>: Unpin, Rc<Executor>: Unpin, Rc<str>: Unpin, Rc<dyn Fn(WindowCloseCause)>: Unpin, Rc<RefCell<Output<DialogReply>>>: Unpin, Rc<RefCell<Output<Result<ImageSize, String>>>>: Unpin, Rc<RefCell<Output<String>>>: Unpin, Rc<RefCell<Output<Option<String>>>>: Unpin, Rc<RefCell<Output<bool>>>: Unpin, Rc<RefCell<Output<Option<ClipboardImage>>>>: Unpin, Rc<RefCell<Output<Result<Option<ClipboardImage>, usize>>>>: Unpin, Rc<RefCell<Output<Vec<String>>>>: Unpin, Rc<RefCell<Output<Vec<PickedFile>>>>: Unpin, Arc<Mutex<Channel>>: Unpin, Rc<RefCell<Output<NotificationPermission>>>: Unpin, Rc<RefCell<Output<AppUrlChange>>>: Unpin, Rc<RefCell<AppUrlState>>: Unpin, Rc<RefCell<Output<SecondInstance>>>: Unpin, Rc<RefCell<Output<Vec<PathBuf>>>>: Unpin, Rc<RefCell<Output<Result<Value, HostError>>>>: Unpin, Rc<RefCell<Output<ClipboardWrite>>>: Unpin, Box<dyn FnOnce() + Send>: Unpin, Rc<RefCell<Output<Result<bool, AppSettingsError>>>>: Unpin, Rc<RefCell<Output<Option<Hsla>>>>: Unpin, Rc<RefCell<Output<Result<Option<Vec<PathBuf>>, String>>>>: Unpin, Rc<RefCell<Output<Result<Option<PathBuf>, String>>>>: Unpin, Rc<RefCell<Output<Result<(), String>>>>: Unpin, Rc<RefCell<Output<Result<HttpResponse, FetchFailure>>>>: Unpin, Rc<RefCell<Output<f32>>>: Unpin, Rc<RefCell<Output<Option<Measurement>>>>: Unpin, Rc<RefCell<Output<Option<ListScrollPosition>>>>: Unpin, Rc<RefCell<Output<Duration>>>: Unpin, Arc<Mutex<VecDeque<Signal>>>: Unpin, Arc<Mutex<Option<Arc<dyn Fn() + Send + Sync>>>>: Unpin, Arc<Atomic<bool>>: Unpin, *mut Counter<Channel<Job>>: Unpin, *mut Counter<Channel<Job>>: Unpin, *mut Counter<Channel<Job>>: Unpin, Arc<Mutex<CleanupState>>: Unpin, Rc<Cell<Option<Owner>>>: Unpin, Rc<dyn Fn(Position) -> AnyElement>: Unpin, Rc<[u64]>: Unpin, Rc<dyn Fn() -> AnyElement>: Unpin, Rc<RefCell<HashMap<u32, (Signal<usize>, Owner), FxBuildHasher>>>: Unpin, Box<dyn FnOnce(&(dyn Any + 'static)) -> Option<Result<Box<dyn ToJs>, Thrown>>>: Unpin, Rc<RefCell<Output<Instant>>>: Unpin, Box<UnsafeCell<Graph<Rust>>>: Unpin, Rc<RefCell<Vec<Patch>>>: Unpin, Box<ListConfig>: Unpin, Rc<PostsInner>: Unpin, Rc<RenderPlace>: Unpin,

§

impl<M> UnsafeUnpin for Core<M>
where *const u8 is !null: UnsafeUnpin, PhantomData<Entry<Node>>: UnsafeUnpin, PhantomData<Option<Page<u32>>>: UnsafeUnpin, PhantomData<(u32, Run)>: UnsafeUnpin, PhantomData<(u32, u32)>: UnsafeUnpin, PhantomData<Entry<LayoutNode<LeafContext<<M as TextEngine>::Prepared>>>>: UnsafeUnpin, PhantomData<NodeId>: UnsafeUnpin, PhantomData<String>: UnsafeUnpin, *const (): UnsafeUnpin, PhantomData<GridTemplateComponent<String>>: UnsafeUnpin, PhantomData<MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>>: UnsafeUnpin, PhantomData<GridTemplateArea<String>>: UnsafeUnpin, PhantomData<Vec<String>>: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, PhantomData<Rc<Style>>: UnsafeUnpin, *const RcInner<Style> is !null: UnsafeUnpin, PhantomData<RcInner<Style>>: UnsafeUnpin, *const RcInner<M> is !null: UnsafeUnpin, PhantomData<RcInner<M>>: UnsafeUnpin, *const RcInner<dyn GeometryEngine> is !null: UnsafeUnpin, PhantomData<RcInner<dyn GeometryEngine>>: UnsafeUnpin, PhantomData<(u32, TextGeometry)>: UnsafeUnpin, PhantomData<((u64, u32), Size<Points>)>: UnsafeUnpin, PhantomData<u32>: UnsafeUnpin, PhantomData<(u32, f32, f32, f32, f32)>: UnsafeUnpin, PhantomData<(u32, Def)>: UnsafeUnpin, PhantomData<(u32, Bounds<Points>)>: UnsafeUnpin, PhantomData<(u32, f32)>: UnsafeUnpin, PhantomData<(u32, ())>: UnsafeUnpin, *const RcInner<dyn Any> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Any>>: UnsafeUnpin, PhantomData<Relator>: UnsafeUnpin, PhantomData<(u64, Result<Shader, ShaderError>)>: UnsafeUnpin, PhantomData<((u32, u32), ())>: UnsafeUnpin, PhantomData<MountItem>: UnsafeUnpin, PhantomData<(Box<str>, u32)>: UnsafeUnpin, PhantomData<ListBind>: UnsafeUnpin, PhantomData<JsEvent>: UnsafeUnpin, *const Retags is !null: UnsafeUnpin, PhantomData<Retags>: UnsafeUnpin, PhantomData<(u32, Command)>: UnsafeUnpin, PhantomData<(u32, Option<(u32, u32)>)>: UnsafeUnpin, PhantomData<(u32, LayoutTransition, bool)>: UnsafeUnpin, PhantomData<(u32, u8)>: UnsafeUnpin, *const ArcInner<Keymap> is !null: UnsafeUnpin, PhantomData<ArcInner<Keymap>>: UnsafeUnpin, PhantomData<(u32, u32, Instant)>: UnsafeUnpin, PhantomData<(u32, Vec<u32>)>: UnsafeUnpin, PhantomData<((Option<FontFamily>, u32, u16, bool), f32)>: UnsafeUnpin, PhantomData<(Box<str>, Color)>: UnsafeUnpin, PhantomData<(Box<str>, f32, bool)>: UnsafeUnpin, PhantomData<(Box<str>, f32)>: UnsafeUnpin, PhantomData<(Box<str>, (f32, Option<f32>))>: UnsafeUnpin, PhantomData<(Box<str>, u16)>: UnsafeUnpin, PhantomData<(Box<str>, Option<Box<str>>)>: UnsafeUnpin, PhantomData<(Box<str>, Vec<BoxShadow>)>: UnsafeUnpin, PhantomData<(Box<str>, Vec<TextShadow>)>: UnsafeUnpin, PhantomData<(Box<str>, [f32; 4])>: UnsafeUnpin, *const ArcInner<ClassTokens> is !null: UnsafeUnpin, PhantomData<ArcInner<ClassTokens>>: UnsafeUnpin, PhantomData<(Box<str>, Rc<ClassList>)>: UnsafeUnpin, PhantomData<(Box<str>, Option<Token>)>: UnsafeUnpin, PhantomData<(ResolvedKey, Rc<ResolvedClassStyle>)>: UnsafeUnpin, *const ArcInner<Access> is !null: UnsafeUnpin, PhantomData<ArcInner<Access>>: UnsafeUnpin, *const ArcInner<str> is !null: UnsafeUnpin, PhantomData<ArcInner<str>>: UnsafeUnpin, *const ArcInner<MediaFiles> is !null: UnsafeUnpin, PhantomData<ArcInner<MediaFiles>>: UnsafeUnpin, PhantomData<(Arc<str>, Option<Arc<str>>)>: UnsafeUnpin, PhantomData<(String, ())>: UnsafeUnpin, PhantomData<(u32, WindowRecord)>: UnsafeUnpin, PhantomData<(String, (u32, bool))>: UnsafeUnpin, *const ArcInner<dyn ClipboardBackend> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn ClipboardBackend>>: UnsafeUnpin, *const ArcInner<dyn PickerBackend> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn PickerBackend>>: UnsafeUnpin, *const ArcInner<dyn WindowBackend> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn WindowBackend>>: UnsafeUnpin, *const ArcInner<dyn AudioBackend> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn AudioBackend>>: UnsafeUnpin, *const ArcInner<dyn LoginItemBackend> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn LoginItemBackend>>: UnsafeUnpin, *mut Counter<Channel<(Option<bool>, Sender<Result<LoginItemStatus, Error>>)>>: UnsafeUnpin, *mut Counter<Channel<(Option<bool>, Sender<Result<LoginItemStatus, Error>>)>>: UnsafeUnpin, *mut Counter<Channel<(Option<bool>, Sender<Result<LoginItemStatus, Error>>)>>: UnsafeUnpin, PhantomData<(u32, Pending)>: UnsafeUnpin, PhantomData<(u32, Pending)>: UnsafeUnpin, *const ArcInner<HashMap<&'static str, ComponentType, FxBuildHasher>> is !null: UnsafeUnpin, PhantomData<ArcInner<HashMap<&'static str, ComponentType, FxBuildHasher>>>: UnsafeUnpin, *const ArcInner<HashMap<&'static str, ModuleType, FxBuildHasher>> is !null: UnsafeUnpin, PhantomData<ArcInner<HashMap<&'static str, ModuleType, FxBuildHasher>>>: UnsafeUnpin, *const ArcInner<HashMap<(Option<&'static str>, &'static str), ClassType, FxBuildHasher>> is !null: UnsafeUnpin, PhantomData<ArcInner<HashMap<(Option<&'static str>, &'static str), ClassType, FxBuildHasher>>>: UnsafeUnpin, *const ArcInner<(Vec<&'static str>, Vec<&'static str>)> is !null: UnsafeUnpin, PhantomData<ArcInner<(Vec<&'static str>, Vec<&'static str>)>>: UnsafeUnpin, *const ArcInner<Vec<&'static str>> is !null: UnsafeUnpin, PhantomData<ArcInner<Vec<&'static str>>>: UnsafeUnpin, &'static str: UnsafeUnpin, *const ArcInner<Vec<(&'static [Os], &'static [AssetFile])>> is !null: UnsafeUnpin, PhantomData<ArcInner<Vec<(&'static [Os], &'static [AssetFile])>>>: UnsafeUnpin, *const ArcInner<Vec<Registry>> is !null: UnsafeUnpin, PhantomData<ArcInner<Vec<Registry>>>: UnsafeUnpin, *const ArcInner<Vec<Arc<dyn Fn() + Send + Sync>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Vec<Arc<dyn Fn() + Send + Sync>>>>: UnsafeUnpin, *const ArcInner<Vec<(&'static str, Arc<dyn Fake>)>> is !null: UnsafeUnpin, PhantomData<ArcInner<Vec<(&'static str, Arc<dyn Fake>)>>>: UnsafeUnpin, *const ArcInner<Vec<(&'static str, GpuSource)>> is !null: UnsafeUnpin, PhantomData<ArcInner<Vec<(&'static str, GpuSource)>>>: UnsafeUnpin, PhantomData<(&'static str, Arc<ComponentSpec>)>: UnsafeUnpin, *const ArcInner<Tokens> is !null: UnsafeUnpin, PhantomData<ArcInner<Tokens>>: UnsafeUnpin, PhantomData<(u32, Box<Instance>)>: UnsafeUnpin, PhantomData<(u32, ByName)>: UnsafeUnpin, PhantomData<(u32, Arc<str>)>: UnsafeUnpin, PhantomData<(u32, SlotTarget)>: UnsafeUnpin, PhantomData<(StyleRefinement, Rc<ClassList>)>: UnsafeUnpin, PhantomData<((usize, usize), [Rc<ClassList>; 3])>: UnsafeUnpin, PhantomData<(u32, (Rc<dyn Fn(Child, Position) -> AnyElement>, u32))>: UnsafeUnpin, *const RcInner<Executor> is !null: UnsafeUnpin, PhantomData<RcInner<Executor>>: UnsafeUnpin, PhantomData<(u32, (Owner, WindowRef))>: UnsafeUnpin, PhantomData<(u32, (Option<WindowState>, Edges<Points>))>: UnsafeUnpin, PhantomData<(u64, StatusBarSetting)>: UnsafeUnpin, PhantomData<(u32, Rc<RefCell<Output<DialogReply>>>)>: UnsafeUnpin, PhantomData<(u32, Rc<RefCell<Output<Result<ImageSize, String>>>>)>: UnsafeUnpin, PhantomData<(u32, ClipboardRead)>: UnsafeUnpin, PhantomData<(u32, (Pick, Rc<RefCell<Output<Vec<PickedFile>>>>))>: UnsafeUnpin, PhantomData<(u32, AudioSink)>: UnsafeUnpin, PhantomData<(u32, Rc<RefCell<Output<NotificationPermission>>>)>: UnsafeUnpin, PhantomData<(u32, Rc<RefCell<Output<bool>>>)>: UnsafeUnpin, *const RcInner<RefCell<Output<String>>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<Output<String>>>>: UnsafeUnpin, PhantomData<WebLink>: UnsafeUnpin, PhantomData<(u64, String)>: UnsafeUnpin, PhantomData<(u64, u64)>: UnsafeUnpin, PhantomData<(Option<u64>, Rc<RefCell<Output<String>>>)>: UnsafeUnpin, PhantomData<(String, Rc<RefCell<Output<String>>>)>: UnsafeUnpin, PhantomData<AppUrlChange>: UnsafeUnpin, *const RcInner<RefCell<Output<AppUrlChange>>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<Output<AppUrlChange>>>>: UnsafeUnpin, *const RcInner<RefCell<AppUrlState>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<AppUrlState>>>: UnsafeUnpin, PhantomData<SecondInstance>: UnsafeUnpin, *const RcInner<RefCell<Output<SecondInstance>>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<Output<SecondInstance>>>>: UnsafeUnpin, PhantomData<PathBuf>: UnsafeUnpin, *const RcInner<RefCell<Output<Vec<PathBuf>>>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<Output<Vec<PathBuf>>>>>: UnsafeUnpin, PhantomData<(u64, Rc<RefCell<Output<Result<Value, HostError>>>>)>: UnsafeUnpin, PhantomData<HostRequest>: UnsafeUnpin, PhantomData<(String, Value)>: UnsafeUnpin, PhantomData<Rc<RefCell<Output<ClipboardWrite>>>>: UnsafeUnpin, PhantomData<(u32, String)>: UnsafeUnpin, PhantomData<MainThreadTask>: UnsafeUnpin, PhantomData<(u32, Rc<RefCell<Output<Result<bool, AppSettingsError>>>>)>: UnsafeUnpin, PhantomData<(u32, Rc<RefCell<Output<Option<Hsla>>>>)>: UnsafeUnpin, PhantomData<(u32, FileAnswer)>: UnsafeUnpin, PhantomData<(u32, PendingFetch)>: UnsafeUnpin, PhantomData<(u32, HttpRequest)>: UnsafeUnpin, PhantomData<(u32, Awaited)>: UnsafeUnpin, PhantomData<(u32, Rc<RefCell<Output<Option<Measurement>>>>)>: UnsafeUnpin, PhantomData<(u32, Rc<RefCell<Output<Option<ListScrollPosition>>>>)>: UnsafeUnpin, PhantomData<(u32, Rc<RefCell<Output<Duration>>>)>: UnsafeUnpin, PhantomData<(u32, Rc<RefCell<Output<String>>>)>: UnsafeUnpin, PhantomData<(u32, PressEvent, Rc<RefCell<Output<bool>>>)>: UnsafeUnpin, PhantomData<(u32, Option<MouseEvent>)>: UnsafeUnpin, PhantomData<(Key, Session)>: UnsafeUnpin, PhantomData<(u64, Tracked)>: UnsafeUnpin, *const ArcInner<Mutex<VecDeque<Signal>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<VecDeque<Signal>>>>: UnsafeUnpin, *const ArcInner<Mutex<Option<Arc<dyn Fn() + Send + Sync>>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<Option<Arc<dyn Fn() + Send + Sync>>>>>: UnsafeUnpin, *const ArcInner<Atomic<bool>> is !null: UnsafeUnpin, PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin, *mut Counter<Channel<Job>>: UnsafeUnpin, *mut Counter<Channel<Job>>: UnsafeUnpin, *mut Counter<Channel<Job>>: UnsafeUnpin, *const ArcInner<Mutex<CleanupState>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<CleanupState>>>: UnsafeUnpin, PhantomData<(u32, VirtualListState)>: UnsafeUnpin, PhantomData<(u32, u32, Box<dyn FnOnce(&(dyn Any + 'static)) -> Option<Result<Box<dyn ToJs>, Thrown>>>)>: UnsafeUnpin, PhantomData<(u32, (Owner, Signal<usize>))>: UnsafeUnpin, PhantomData<(u32, ListConfig)>: UnsafeUnpin, PhantomData<(u32, Edges<Points>)>: UnsafeUnpin, PhantomData<(u32, Vec<(u32, u32)>)>: UnsafeUnpin, PhantomData<Rc<RefCell<Output<Instant>>>>: UnsafeUnpin, PhantomData<Prop>: UnsafeUnpin, *const UnsafeCell<Graph<Rust>> is !null: UnsafeUnpin, PhantomData<UnsafeCell<Graph<Rust>>>: UnsafeUnpin, *const RcInner<RefCell<Vec<Patch>>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<Vec<Patch>>>>: UnsafeUnpin, PhantomData<(u32, RegionState)>: UnsafeUnpin, *const RcInner<PostsInner> is !null: UnsafeUnpin, PhantomData<RcInner<PostsInner>>: UnsafeUnpin, PhantomData<(u32, Rc<RenderPlace>)>: UnsafeUnpin, PhantomData<((u32, Arc<str>), RenderSlot)>: UnsafeUnpin, PhantomData<(u32, (Arc<str>, u32))>: UnsafeUnpin, PhantomData<(u32, (Option<Rc<ClassList>>, SharedString, Option<Rc<ClassList>>))>: UnsafeUnpin, PhantomData<(u32, CoreTooltip)>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.