Skip to main content

EuvVirtualListHandle

Struct EuvVirtualListHandle 

Source
pub struct EuvVirtualListHandle { /* private fields */ }
Expand description

Mounted EuvVirtualList controller enabling O(1) stable-ID single-row patches and refreshes without rebuilding sibling rows.

Implementations§

Source§

impl EuvVirtualListHandle

Stable-ID O(1) single-row lookup, surgical patching, and isolated refresh operations for EuvVirtualListHandle.

Source

pub fn root(&self) -> NodeId

Returns the mounted scrollable container NodeId.

§Arguments
  • &Self - Virtual list controller reference.
§Returns
  • NodeId - Mounted container root handle.
Source

pub fn row_node(&self, index: usize) -> Option<NodeId>

Resolves the mounted NodeId for logical row index in O(1) when currently materialized in the viewport window.

§Arguments
  • &Self - Virtual list controller reference.
  • usize - Stable logical row index.
§Returns
  • Option<NodeId> - Active row node handle if currently visible, or None when off-screen.
Source

pub fn patch_row<F>(&self, index: usize, patch: F) -> bool
where F: FnOnce(&mut SceneTree, NodeId),

Mutates a single materialized row in place inside one SceneTree write lock without rebuilding sibling rows or invalidating rows_host children.

§Arguments
  • &Self - Virtual list controller reference.
  • usize - Stable logical row index to patch.
  • F - Mutation closure receiving (&mut SceneTree, NodeId) for the target row.
§Returns
  • bool - true when index was materialized and patched, or false when off-screen.
Source

pub fn update_row(&self, index: usize) -> bool

Rebuilds and swaps only the single materialized row at logical index in O(1), leaving all sibling rows and their layout caches untouched.

§Arguments
  • &Self - Virtual list controller reference.
  • usize - Stable logical row index to refresh.
§Returns
  • bool - true when index was visible and refreshed, or false when off-screen.

Trait Implementations§

Source§

impl Clone for EuvVirtualListHandle

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EuvVirtualListHandle

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the struct fields as a debug struct, skipping excluded fields.

§Arguments
  • &mut ::std::fmt::Formatter<'_> - The formatter to write the representation into.
§Returns
  • ::std::fmt::Result - Success or failure of the formatting operation.

Auto Trait Implementations§

§

impl !RefUnwindSafe for EuvVirtualListHandle

§

impl !Send for EuvVirtualListHandle

§

impl !Sync for EuvVirtualListHandle

§

impl !UnwindSafe for EuvVirtualListHandle

§

impl Forget for EuvVirtualListHandle

§

impl Freeze for EuvVirtualListHandle
where *const RcInner<SceneHandleInner> is !null: Freeze, PhantomData<RcInner<SceneHandleInner>>: Freeze, PhantomData<fn() -> Breakpoint>: Freeze, PhantomData<fn() -> Size>: Freeze, PhantomData<fn() -> ThemeMode>: Freeze, PhantomData<fn() -> SafeAreaInsets>: Freeze, PhantomData<fn() -> Option<GestureEvent>>: Freeze, PhantomData<fn() -> f32>: Freeze, PhantomData<fn() -> u64>: Freeze, *const RcInner<RefCell<DynamicHubState>> is !null: Freeze, PhantomData<RcInner<RefCell<DynamicHubState>>>: Freeze, PhantomData<fn() -> Option<u32>>: Freeze, PhantomData<fn() -> bool>: Freeze, PhantomData<fn() -> Vec<(u64, Point)>>: Freeze, PhantomData<fn() -> AppState>: Freeze, PhantomData<fn() -> NetworkStatus>: Freeze, PhantomData<fn() -> ScreenOrientation>: Freeze, PhantomData<fn() -> String>: Freeze, PhantomData<fn() -> DeviceMotionSample>: Freeze, *const RcInner<ContextShared> is !null: Freeze, PhantomData<RcInner<ContextShared>>: Freeze, *const RcInner<RefCell<VecDeque<(usize, Scope, NodeId)>>> is !null: Freeze, PhantomData<RcInner<RefCell<VecDeque<(usize, Scope, NodeId)>>>>: Freeze, *const RcInner<RefCell<dyn FnMut(usize) -> NodeId>> is !null: Freeze, PhantomData<RcInner<RefCell<dyn FnMut(usize) -> NodeId>>>: Freeze,

§

impl Move for EuvVirtualListHandle

§

impl Unpin for EuvVirtualListHandle
where Rc<SceneHandleInner>: Unpin, Rc<RefCell<DynamicHubState>>: Unpin, Rc<ContextShared>: Unpin, Rc<RefCell<VecDeque<(usize, Scope, NodeId)>>>: Unpin, Rc<RefCell<dyn FnMut(usize) -> NodeId>>: Unpin,

§

impl UnsafeUnpin for EuvVirtualListHandle

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.