pub struct JumpIndex<T> {
pub sources: Vec<JumpSource<T>>,
}Expand description
A searchable index over several sources: what Jump searches.
Fields§
§sources: Vec<JumpSource<T>>Implementations§
Source§impl<T> JumpIndex<T>
impl<T> JumpIndex<T>
pub fn new() -> JumpIndex<T>
pub fn source(self, source: JumpSource<T>) -> Self
Sourcepub fn scope<'q>(&self, query: &'q str) -> (Option<usize>, &'q str)
pub fn scope<'q>(&self, query: &'q str) -> (Option<usize>, &'q str)
The source a query names with its first character, and the rest of
the query: >bu is bu in the source whose prefix is >.
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for JumpIndex<T>
impl<T> !UnwindSafe for JumpIndex<T>
impl<T> Freeze for JumpIndex<T>
impl<T> Send for JumpIndex<T>
impl<T> Sync for JumpIndex<T>
impl<T> Unpin for JumpIndex<T>
impl<T> UnsafeUnpin for JumpIndex<T>
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