pub struct RustDoc { /* private fields */ }
Expand description
RustDoc contains DocItems, which could be convert to RustDocSeeker.
§Example
let data = fs::read_to_string("search-index.js").unwrap();
let rustdoc: RustDoc = data.parse().unwrap();
// let's combine RustDoc
rustdoc_a.extend(rustdoc_b)
Implementations§
Trait Implementations§
Source§impl Extend<DocItem> for RustDoc
impl Extend<DocItem> for RustDoc
Source§fn extend<T: IntoIterator<Item = DocItem>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = DocItem>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<DocItem> for RustDoc
impl FromIterator<DocItem> for RustDoc
Source§impl IntoIterator for RustDoc
impl IntoIterator for RustDoc
Auto Trait Implementations§
impl Freeze for RustDoc
impl RefUnwindSafe for RustDoc
impl Send for RustDoc
impl Sync for RustDoc
impl Unpin for RustDoc
impl UnwindSafe for RustDoc
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