Skip to main content

AdapterFrame

Struct AdapterFrame 

Source
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>

Source

pub fn from_runtime(frame: Frame, rt: &'a LayoutRuntime) -> Self

Build from a runtime resolve result.

Source

pub fn from_stateless(resolved: ResolvedLayout) -> Self

Build from a stateless resolve result.

Source

pub fn resolved(&self) -> &ResolvedLayout

Access the resolved layout regardless of variant.

Source

pub fn diff(&self) -> Option<LayoutDiff<'_>>

Layout diff (panel IDs, not rects). None for stateless resolves.

Source

pub fn inner(&self) -> Option<&Frame>

Raw panes Frame. None for stateless resolves.

Source

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> 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.