pub struct MultiSelectOptions {
pub flags: MultiSelectFlags,
pub click_policy: Option<MultiSelectClickPolicy>,
pub box_select: Option<MultiSelectBoxSelect>,
pub scope: Option<MultiSelectScopeKind>,
}Expand description
Complete multi-select options assembled from independent flags and an optional single-choice policies.
Fields§
§flags: MultiSelectFlags§click_policy: Option<MultiSelectClickPolicy>§box_select: Option<MultiSelectBoxSelect>§scope: Option<MultiSelectScopeKind>Implementations§
Source§impl MultiSelectOptions
impl MultiSelectOptions
pub const fn new() -> Self
pub fn flags(self, flags: MultiSelectFlags) -> Self
pub fn click_policy(self, policy: MultiSelectClickPolicy) -> Self
pub fn box_select(self, mode: MultiSelectBoxSelect) -> Self
pub fn scope(self, scope: MultiSelectScopeKind) -> Self
pub fn bits(self) -> i32
Trait Implementations§
Source§impl Clone for MultiSelectOptions
impl Clone for MultiSelectOptions
Source§fn clone(&self) -> MultiSelectOptions
fn clone(&self) -> MultiSelectOptions
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 moreSource§impl Debug for MultiSelectOptions
impl Debug for MultiSelectOptions
Source§impl Default for MultiSelectOptions
impl Default for MultiSelectOptions
Source§impl From<MultiSelectFlags> for MultiSelectOptions
impl From<MultiSelectFlags> for MultiSelectOptions
Source§fn from(flags: MultiSelectFlags) -> Self
fn from(flags: MultiSelectFlags) -> Self
Converts to this type from the input type.
Source§impl Hash for MultiSelectOptions
impl Hash for MultiSelectOptions
Source§impl PartialEq for MultiSelectOptions
impl PartialEq for MultiSelectOptions
Source§fn eq(&self, other: &MultiSelectOptions) -> bool
fn eq(&self, other: &MultiSelectOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MultiSelectOptions
impl Eq for MultiSelectOptions
impl StructuralPartialEq for MultiSelectOptions
Auto Trait Implementations§
impl Freeze for MultiSelectOptions
impl RefUnwindSafe for MultiSelectOptions
impl Send for MultiSelectOptions
impl Sync for MultiSelectOptions
impl Unpin for MultiSelectOptions
impl UnsafeUnpin for MultiSelectOptions
impl UnwindSafe for MultiSelectOptions
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