pub struct SelectListLayoutOptions {
pub min_primary_column_width: Option<usize>,
pub max_primary_column_width: Option<usize>,
pub truncate_primary: Option<Box<dyn Fn(&str, usize, usize, &SelectItem, bool) -> String>>,
}Expand description
Layout options for the primary column (matching pi’s SelectListLayoutOptions).
Fields§
§min_primary_column_width: Option<usize>§max_primary_column_width: Option<usize>§truncate_primary: Option<Box<dyn Fn(&str, usize, usize, &SelectItem, bool) -> String>>Custom truncation function for primary column.
Auto Trait Implementations§
impl !RefUnwindSafe for SelectListLayoutOptions
impl !Send for SelectListLayoutOptions
impl !Sync for SelectListLayoutOptions
impl !UnwindSafe for SelectListLayoutOptions
impl Freeze for SelectListLayoutOptions
impl Unpin for SelectListLayoutOptions
impl UnsafeUnpin for SelectListLayoutOptions
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