pub struct PickerItem {
pub label: String,
pub tag: Option<String>,
pub tag_style: Option<Style>,
}Expand description
A single row in a render_picker list.
Fields§
§label: StringPrimary label shown in the list.
tag: Option<String>Optional short tag shown before the label, e.g. "[C]", "[R]".
tag_style: Option<Style>Style applied to the tag when the row is not selected. Ignored when tag is None.
Implementations§
Trait Implementations§
Source§impl Clone for PickerItem
impl Clone for PickerItem
Source§fn clone(&self) -> PickerItem
fn clone(&self) -> PickerItem
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 PickerItem
impl RefUnwindSafe for PickerItem
impl Send for PickerItem
impl Sync for PickerItem
impl Unpin for PickerItem
impl UnsafeUnpin for PickerItem
impl UnwindSafe for PickerItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more