pub struct DocItem {
pub slug: String,
pub name: String,
pub kind: ItemKind,
pub doc: Option<Doc>,
pub detail: ItemDetail,
}Expand description
One renderable item with the URL stem we use to address it.
Fields§
§slug: StringFile-name base for this item, e.g. "fn.foo", "struct.Bar".
name: StringDisplay name ("foo", "Bar", etc.).
kind: ItemKindWhat kind of item this is (purely cosmetic in the rendered page).
doc: Option<Doc>The item’s own docstring, if any.
detail: ItemDetailType-specific extra info rendered into the page body.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DocItem
impl RefUnwindSafe for DocItem
impl Send for DocItem
impl Sync for DocItem
impl Unpin for DocItem
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'src, T> IntoMaybe<'src, T> for Twhere
T: 'src,
impl<'src, T> IntoMaybe<'src, T> for Twhere
T: 'src,
§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
§type Iter<'a> = Once<&'a T>
where
T: 'a
type Iter<'a> = Once<&'a T> where T: 'a
An iterator over the items within this container, by reference.
§fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
Check whether an item is contained within this sequence.
§fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
Convert an item of the sequence into a [
MaybeRef].