pub struct SingleSelectionBuilder { /* private fields */ }Expand description
A builder-pattern type to construct SingleSelection objects.
Implementations§
Source§impl SingleSelectionBuilder
impl SingleSelectionBuilder
pub fn autoselect(self, autoselect: bool) -> Self
pub fn can_unselect(self, can_unselect: bool) -> Self
pub fn model(self, model: &impl IsA<ListModel>) -> Self
pub fn selected(self, selected: u32) -> Self
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