Struct skim::PreviewContext
source · 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 [Cow<'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 [Cow<'a, str>]selected item texts (may or may not include current item)
Auto Trait Implementations§
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