pub struct PreviewContext<'a> {
pub query: &'a str,
pub cmd_query: &'a str,
pub width: usize,
pub height: usize,
pub current_index: usize,
pub current_selection: &'a str,
pub selected_indices: &'a [usize],
pub selections: &'a [&'a str],
}Fields§
§query: &'a str§cmd_query: &'a str§width: usize§height: usize§current_index: usize§current_selection: &'a str§selected_indices: &'a [usize]selected item indices (may or may not include current item)
selections: &'a [&'a str]selected item texts (may or may not include current item)
Auto Trait Implementations§
impl<'a> Freeze for PreviewContext<'a>
impl<'a> RefUnwindSafe for PreviewContext<'a>
impl<'a> Send for PreviewContext<'a>
impl<'a> Sync for PreviewContext<'a>
impl<'a> Unpin for PreviewContext<'a>
impl<'a> UnwindSafe for PreviewContext<'a>
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