pub enum LayoutArtifact {
Text(TextLayoutHandle),
}Expand description
Reusable, subsystem-specific data produced during layout.
Keeping an artifact in LayoutResult lets paint reuse expensive work
rather than shape or measure it again. Artifacts do not participate in the
runtime’s geometry-change comparison.
§Examples
use ailloli_ui_runtime::layout::LayoutArtifact;
fn is_text(artifact: &LayoutArtifact) -> bool {
matches!(artifact, LayoutArtifact::Text(_))
}Variants§
Text(TextLayoutHandle)
A shared shaped-text layout owned by ailloli_ui_text.
Trait Implementations§
Source§impl Clone for LayoutArtifact
impl Clone for LayoutArtifact
Source§fn clone(&self) -> LayoutArtifact
fn clone(&self) -> LayoutArtifact
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LayoutArtifact
impl !RefUnwindSafe for LayoutArtifact
impl Send for LayoutArtifact
impl Sync for LayoutArtifact
impl Unpin for LayoutArtifact
impl !UnwindSafe for LayoutArtifact
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.