pub struct DocItem {
pub name: TypeItem,
pub parent: Option<TypeItem>,
pub path: DefaultAtom,
pub desc: DefaultAtom,
}
Expand description
DocItem represent a searchable item,
Use Display
to get the relative URI of the item.
eg:
The dedup
(name) function of the Vec
(parent) struct in std::vec
(path) module.
The Vec
(name) struct of None
(parent) in std::vec
(path) module.
The vec
(name) module of None
(parent) in std
(path) module.
§Example
println!("{} is the url of {:?}", &docitem, &docitem)
Fields§
§name: TypeItem
§parent: Option<TypeItem>
§path: DefaultAtom
§desc: DefaultAtom
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 Ord for DocItem
impl Ord for DocItem
Source§impl PartialOrd for DocItem
impl PartialOrd for DocItem
impl Eq for DocItem
Auto Trait Implementations§
impl Freeze for DocItem
impl RefUnwindSafe for DocItem
impl Send for DocItem
impl Sync for DocItem
impl Unpin for DocItem
impl UnwindSafe for DocItem
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