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> Freeze for SearchIndex<'a>
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