pub struct VirtualList { /* private fields */ }Available on crate feature
icedwright only.Expand description
A virtual_list: only the rows on screen are
in the tree, each with its position in the whole list.
Implementations§
Source§impl VirtualList
impl VirtualList
Sourcepub fn row(&self, tree: &SemanticTree, index: u32) -> Option<Locator<ListItem>>
pub fn row(&self, tree: &SemanticTree, index: u32) -> Option<Locator<ListItem>>
The rendered row at index, counted from 0 over the whole list, or
None when that row is not rendered in tree.
Sourcepub fn scroll_target(
&self,
tree: &SemanticTree,
index: u32,
) -> Option<ScrollTarget>
pub fn scroll_target( &self, tree: &SemanticTree, index: u32, ) -> Option<ScrollTarget>
The scroll that brings row index to the top of the list, from a
rendered row’s height, since every row has the same height. None
when no row is rendered.
Trait Implementations§
Source§impl Clone for VirtualList
impl Clone for VirtualList
Source§impl ComponentLocator for VirtualList
impl ComponentLocator for VirtualList
Source§impl Debug for VirtualList
impl Debug for VirtualList
impl Eq for VirtualList
Source§impl PartialEq for VirtualList
impl PartialEq for VirtualList
impl StructuralPartialEq for VirtualList
Auto Trait Implementations§
impl Forget for VirtualList
impl Freeze for VirtualList
impl Move for VirtualList
impl RefUnwindSafe for VirtualListwhere
Atomic<usize>: RefUnwindSafe,
Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + Send + UnwindSafe>>: RefUnwindSafe,
impl Send for VirtualList
impl Sync for VirtualList
impl Unpin for VirtualList
impl UnsafeUnpin for VirtualListwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Step>: UnsafeUnpin,
PhantomData<fn() -> AnyRole>: UnsafeUnpin,
impl UnwindSafe for VirtualListwhere
RawVecInner: UnwindSafe,
Arc<RegexI>: UnwindSafe,
BoxRaw<Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + Send + UnwindSafe>>>: UnwindSafe,
Arc<str>: UnwindSafe,
&'static str: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<State, Message> IntoBoot<State, Message> for State
impl<State, Message> IntoBoot<State, Message> for State
Source§fn into_boot(self) -> (State, Task<Message>)
fn into_boot(self) -> (State, Task<Message>)
Turns some type into the initial state of some
Application.