pub struct SingleSelectionBuilder { /* private fields */ }Expand description
A builder-pattern type to construct SingleSelection objects.
Implementations§
Source§impl SingleSelectionBuilder
impl SingleSelectionBuilder
Sourcepub fn autoselect(self, autoselect: bool) -> Self
pub fn autoselect(self, autoselect: bool) -> Self
If the selection will always select an item.
Sourcepub fn can_unselect(self, can_unselect: bool) -> Self
pub fn can_unselect(self, can_unselect: bool) -> Self
If unselecting the selected item is allowed.
Sourcepub fn build(self) -> SingleSelection
pub fn build(self) -> SingleSelection
Build the SingleSelection.
Auto Trait Implementations§
impl Freeze for SingleSelectionBuilder
impl RefUnwindSafe for SingleSelectionBuilder
impl !Send for SingleSelectionBuilder
impl !Sync for SingleSelectionBuilder
impl Unpin for SingleSelectionBuilder
impl UnwindSafe for SingleSelectionBuilder
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