pub struct SelectRegion {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
pub model: String,
pub row: Option<String>,
pub options: Vec<String>,
}Expand description
An absolutely-positioned type="select", carrying its bound options so the
shell can open a dropdown and write the chosen value back to model.
Fields§
§x: f32§y: f32§width: f32§height: f32§model: String§row: Option<String>The r-key of the r-for row this select is in, when it is in one. The
model repeats across a list’s rows, so without this the shell opens the
first row’s dropdown wherever you tapped, draws it over that row, and
writes the chosen option into it.
options: Vec<String>Implementations§
Trait Implementations§
Source§impl Clone for SelectRegion
impl Clone for SelectRegion
Source§fn clone(&self) -> SelectRegion
fn clone(&self) -> SelectRegion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SelectRegion
impl RefUnwindSafe for SelectRegion
impl Send for SelectRegion
impl Sync for SelectRegion
impl Unpin for SelectRegion
impl UnsafeUnpin for SelectRegion
impl UnwindSafe for SelectRegion
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