[−][src]Struct rustdoc_seeker::DocItem
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]
pub fn new(
name: TypeItem,
parent: Option<TypeItem>,
path: Atom,
desc: Atom
) -> DocItem
[src]
name: TypeItem,
parent: Option<TypeItem>,
path: Atom,
desc: Atom
) -> DocItem
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]
fn extend<T: IntoIterator<Item = DocItem>>(&mut self, iter: T)
[src]
impl FromIterator<DocItem> for RustDoc
[src]
fn from_iter<I: IntoIterator<Item = DocItem>>(iter: I) -> Self
[src]
impl Ord for DocItem
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<DocItem> for DocItem
[src]
impl PartialOrd<DocItem> for DocItem
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,