Struct docsearch::SearchIndex
source · pub struct SearchIndex<'a> { /* private fields */ }
Expand description
Second and last state in retrieving a search index. Use the Self::url
function to get the
search index URL to download. The index’s content must be passed to Self::transform_index
to
create the final Index
instance.
Implementations§
source§impl<'a> SearchIndex<'a>
impl<'a> SearchIndex<'a>
sourcepub fn url(&self) -> &str
pub fn url(&self) -> &str
URL to the search index that should be retrieved and passed to Self::transform_index
.
sourcepub fn transform_index(self, index_content: &str) -> Result<Index>
pub fn transform_index(self, index_content: &str) -> Result<Index>
Try to transform the raw index content into a simple “path-to-URL” mapping for each contained crate.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for SearchIndex<'a>
impl<'a> Send for SearchIndex<'a>
impl<'a> Sync for SearchIndex<'a>
impl<'a> Unpin for SearchIndex<'a>
impl<'a> UnwindSafe for SearchIndex<'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