pub struct AdapterFrame<'a> { /* private fields */ }Expand description
Shared adapter-frame shell for renderer backends.
Captures the runtime-vs-stateless duality that every adapter crate needs:
runtime frames borrow the LayoutRuntime for diff access, while stateless
frames own a ResolvedLayout directly. Renderer-specific rect conversion
and helpers remain local to each adapter crate.
Implementations§
Source§impl<'a> AdapterFrame<'a>
impl<'a> AdapterFrame<'a>
Sourcepub fn from_runtime(frame: Frame, rt: &'a LayoutRuntime) -> Self
pub fn from_runtime(frame: Frame, rt: &'a LayoutRuntime) -> Self
Build from a runtime resolve result.
Sourcepub fn from_stateless(resolved: ResolvedLayout) -> Self
pub fn from_stateless(resolved: ResolvedLayout) -> Self
Build from a stateless resolve result.
Sourcepub fn resolved(&self) -> &ResolvedLayout
pub fn resolved(&self) -> &ResolvedLayout
Access the resolved layout regardless of variant.
Sourcepub fn diff(&self) -> Option<LayoutDiff<'_>>
pub fn diff(&self) -> Option<LayoutDiff<'_>>
Layout diff (panel IDs, not rects). None for stateless resolves.
Sourcepub fn overlay_failures(&self) -> &[(OverlayId, Arc<str>, AnchorFailure)]
pub fn overlay_failures(&self) -> &[(OverlayId, Arc<str>, AnchorFailure)]
Overlays that failed to anchor during the most recent resolve.
Auto Trait Implementations§
impl<'a> Freeze for AdapterFrame<'a>
impl<'a> RefUnwindSafe for AdapterFrame<'a>
impl<'a> !Send for AdapterFrame<'a>
impl<'a> !Sync for AdapterFrame<'a>
impl<'a> Unpin for AdapterFrame<'a>
impl<'a> UnsafeUnpin for AdapterFrame<'a>
impl<'a> UnwindSafe for AdapterFrame<'a>
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