Enum Candidate
pub enum Candidate<'a> {
Container {
id: Option<&'a Id>,
bounds: Rectangle,
visible_bounds: Option<Rectangle>,
},
Focusable {
id: Option<&'a Id>,
bounds: Rectangle,
visible_bounds: Option<Rectangle>,
state: &'a dyn Focusable,
},
Scrollable {
id: Option<&'a Id>,
bounds: Rectangle,
content_bounds: Rectangle,
visible_bounds: Option<Rectangle>,
translation: Vector,
state: &'a dyn Scrollable,
},
TextInput {
id: Option<&'a Id>,
bounds: Rectangle,
visible_bounds: Option<Rectangle>,
state: &'a dyn TextInput,
},
Text {
id: Option<&'a Id>,
bounds: Rectangle,
visible_bounds: Option<Rectangle>,
content: &'a str,
},
Custom {
id: Option<&'a Id>,
bounds: Rectangle,
visible_bounds: Option<Rectangle>,
state: &'a (dyn Any + 'static),
},
}
Available on crate feature
selector
only.Expand description
A selection candidate.
This is provided to Selector::select
.
Variants§
Container
Focusable
Scrollable
TextInput
Text
Custom
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Candidate<'a>
impl<'a> !RefUnwindSafe for Candidate<'a>
impl<'a> !Send for Candidate<'a>
impl<'a> !Sync for Candidate<'a>
impl<'a> Unpin for Candidate<'a>
impl<'a> !UnwindSafe for Candidate<'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