Struct rustdoc_seeker::DocItem [−][src]
pub struct DocItem {
pub name: TypeItem,
pub parent: Option<TypeItem>,
pub path: Atom,
pub desc: Atom,
}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: Atom
desc: Atom
Methods
impl DocItem[src]
impl DocItempub fn new(
name: TypeItem,
parent: Option<TypeItem>,
path: Atom,
desc: Atom
) -> DocItem[src]
pub fn new(
name: TypeItem,
parent: Option<TypeItem>,
path: Atom,
desc: Atom
) -> DocItempub fn key(&self) -> &Atom[src]
pub fn key(&self) -> &AtomTrait Implementations
impl Debug for DocItem[src]
impl Debug for DocItemfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for DocItem[src]
impl Eq for DocItemimpl PartialEq for DocItem[src]
impl PartialEq for DocItemfn eq(&self, other: &DocItem) -> bool[src]
fn eq(&self, other: &DocItem) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Hash for DocItem[src]
impl Hash for DocItemfn hash<H: Hasher>(&self, state: &mut H)[src]
fn hash<H: Hasher>(&self, state: &mut H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl Display for DocItem[src]
impl Display for DocItemfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Extend<DocItem> for RustDoc[src]
impl Extend<DocItem> for RustDocfn extend<T: IntoIterator<Item = DocItem>>(&mut self, iter: T)[src]
fn extend<T: IntoIterator<Item = DocItem>>(&mut self, iter: T)Extends a collection with the contents of an iterator. Read more
impl FromIterator<DocItem> for RustDoc[src]
impl FromIterator<DocItem> for RustDocfn from_iter<I: IntoIterator<Item = DocItem>>(iter: I) -> Self[src]
fn from_iter<I: IntoIterator<Item = DocItem>>(iter: I) -> SelfCreates a value from an iterator. Read more