pub struct NodeFrameState {
pub layout: NodeLayout,
pub interaction: NodeInteraction,
}Expand description
Combined previous/current frame view for callers that need both layout and interaction at the same time.
Fields§
§layout: NodeLayoutLayout resolved for the node in one frame.
interaction: NodeInteractionInteraction sampled for the node in one frame.
Implementations§
Source§impl NodeFrameState
impl NodeFrameState
Sourcepub const fn new(layout: NodeLayout, interaction: NodeInteraction) -> Self
pub const fn new(layout: NodeLayout, interaction: NodeInteraction) -> Self
Creates a combined frame-state snapshot for one node.
Trait Implementations§
Source§impl Clone for NodeFrameState
impl Clone for NodeFrameState
Source§fn clone(&self) -> NodeFrameState
fn clone(&self) -> NodeFrameState
Returns a duplicate 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 moreSource§impl Debug for NodeFrameState
impl Debug for NodeFrameState
Source§impl Default for NodeFrameState
impl Default for NodeFrameState
Source§fn default() -> NodeFrameState
fn default() -> NodeFrameState
Returns the “default value” for a type. Read more
impl Copy for NodeFrameState
Auto Trait Implementations§
impl Freeze for NodeFrameState
impl RefUnwindSafe for NodeFrameState
impl Send for NodeFrameState
impl Sync for NodeFrameState
impl Unpin for NodeFrameState
impl UnsafeUnpin for NodeFrameState
impl UnwindSafe for NodeFrameState
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