[][src]Struct rustdoc_seeker::DocItem

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: TypeItemparent: Option<TypeItem>path: Atomdesc: Atom

Methods

impl DocItem[src]

pub fn new(
    name: TypeItem,
    parent: Option<TypeItem>,
    path: Atom,
    desc: Atom
) -> DocItem
[src]

pub fn fmt_naive<W: Write>(&self, f: &mut W) -> Result[src]

pub fn fmt_url<W: Write>(&self, f: &mut W) -> Result[src]

Trait Implementations

impl Debug for DocItem[src]

impl Display for DocItem[src]

impl Eq for DocItem[src]

impl Extend<DocItem> for RustDoc[src]

impl FromIterator<DocItem> for RustDoc[src]

impl Ord for DocItem[src]

impl PartialEq<DocItem> for DocItem[src]

impl PartialOrd<DocItem> for DocItem[src]

impl StructuralEq for DocItem[src]

Auto Trait Implementations

impl RefUnwindSafe for DocItem

impl Send for DocItem

impl Sync for DocItem

impl Unpin for DocItem

impl UnwindSafe for DocItem

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.