#[non_exhaustive]pub struct Pick { /* private fields */ }Implementations§
Source§impl Pick
impl Pick
pub fn new( title: impl Into<Cow<'static, str>>, options: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn rows( title: impl Into<Cow<'static, str>>, rows: impl IntoIterator<Item = Row>, ) -> Self
pub fn selected(self, index: usize) -> Self
pub fn hints(self, hints: impl IntoIterator<Item = Hint<'static>>) -> Self
pub fn keys(self, keys: Keys) -> Self
pub fn cancel_keys(self, keys: &'static [Key]) -> Self
pub fn columns(self, columns: impl IntoIterator<Item = Column<'static>>) -> Self
pub fn full(self, full: bool) -> Self
Auto Trait Implementations§
impl Freeze for Pick
impl RefUnwindSafe for Pick
impl Send for Pick
impl Sync for Pick
impl Unpin for Pick
impl UnsafeUnpin for Pick
impl UnwindSafe for Pick
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> 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