pub enum JumpHit {
Action(JumpAction),
Host(HostHit),
Tunnel(TunnelHit),
Container(ContainerHit),
Snippet(SnippetHit),
}Expand description
One row in the unified jump bar. Each variant carries enough state for the dispatch step to navigate the user to the matched item.
Variants§
Implementations§
Source§impl JumpHit
impl JumpHit
pub fn kind(&self) -> SourceKind
Sourcepub fn haystacks(&self) -> Vec<&str>
pub fn haystacks(&self) -> Vec<&str>
All searchable strings, including aliases. Score = max over haystacks.
Returns borrowed slices so the scoring loop is allocation-free per
hit. The single exception is the action hotkey which needs a tiny
owned buffer; we render it via key_str which is a String field
on JumpAction.
Trait Implementations§
impl Eq for JumpHit
impl StructuralPartialEq for JumpHit
Auto Trait Implementations§
impl Freeze for JumpHit
impl RefUnwindSafe for JumpHit
impl Send for JumpHit
impl Sync for JumpHit
impl Unpin for JumpHit
impl UnsafeUnpin for JumpHit
impl UnwindSafe for JumpHit
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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