pub struct FrameState {
pub viewport: ViewportState,
pub scroll: ScrollState,
}Expand description
A combined snapshot of viewport + scroll state.
This is useful for restoring UI state across frames or sessions without coupling the virtualizer to any specific UI framework.
Fields§
§viewport: ViewportState§scroll: ScrollStateTrait Implementations§
Source§impl Clone for FrameState
impl Clone for FrameState
Source§fn clone(&self) -> FrameState
fn clone(&self) -> FrameState
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 FrameState
impl Debug for FrameState
Source§impl Default for FrameState
impl Default for FrameState
Source§fn default() -> FrameState
fn default() -> FrameState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FrameState
impl<'de> Deserialize<'de> for FrameState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FrameState
impl PartialEq for FrameState
Source§impl Serialize for FrameState
impl Serialize for FrameState
impl Copy for FrameState
impl Eq for FrameState
impl StructuralPartialEq for FrameState
Auto Trait Implementations§
impl Freeze for FrameState
impl RefUnwindSafe for FrameState
impl Send for FrameState
impl Sync for FrameState
impl Unpin for FrameState
impl UnwindSafe for FrameState
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