pub struct SkimOutput {
pub final_event: Event,
pub is_abort: bool,
pub final_key: Key,
pub query: String,
pub cmd: String,
pub selected_items: Vec<Arc<dyn SkimItem>>,
}Fields§
§final_event: EventThe final event that makes skim accept/quit.
Was designed to determine if skim quit or accept.
Typically there are only two options: Event::EvActAbort | Event::EvActAccept
is_abort: boolquick pass for judging if skim aborts.
final_key: KeyThe final key that makes skim accept/quit. Note that it might be Key::Null if it is triggered by skim.
query: StringThe query
cmd: StringThe command query
selected_items: Vec<Arc<dyn SkimItem>>The selected items.
Auto Trait Implementations§
impl Freeze for SkimOutput
impl !RefUnwindSafe for SkimOutput
impl Send for SkimOutput
impl Sync for SkimOutput
impl Unpin for SkimOutput
impl !UnwindSafe for SkimOutput
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