pub struct ListView<'a> {
pub hi: Option<usize>,
pub top: usize,
pub rows: usize,
pub query: Option<&'a str>,
pub row_h: f64,
}Expand description
What part of a long option list a popover shows. The select’s own model (keyboard, wheel, type-to-filter) keeps it; the popover only draws it.
Fields§
§hi: Option<usize>The keyboard-highlighted row (.hi).
top: usizeFirst shown row.
rows: usizeHow many rows show (a scroll thumb appears when there are more).
query: Option<&'a str>A search line with this query (Some(""): its placeholder).
row_h: f64Height of a row (sets the thumb’s travel; rows are styled by CSS).
Implementations§
Trait Implementations§
impl<'a> Copy for ListView<'a>
impl<'a> StructuralPartialEq for ListView<'a>
Auto Trait Implementations§
impl<'a> Forget for ListView<'a>
impl<'a> Freeze for ListView<'a>
impl<'a> Move for ListView<'a>
impl<'a> RefUnwindSafe for ListView<'a>
impl<'a> Send for ListView<'a>
impl<'a> Sync for ListView<'a>
impl<'a> Unpin for ListView<'a>
impl<'a> UnsafeUnpin for ListView<'a>
impl<'a> UnwindSafe for ListView<'a>
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