[][src]Struct skim::PreviewContext

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 strcmd_query: &'a strwidth: usizeheight: usizecurrent_index: usizecurrent_selection: &'a strselected_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> 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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsAny for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.