pub struct ItemDetail {
pub fields: Vec<NamedDoc>,
pub variants: Vec<NamedDoc>,
pub methods: Vec<NamedDoc>,
pub extern_fns: Vec<NamedDoc>,
}Expand description
Type-specific information used to render a richer page than just
# name + docstring. Anything not modelled here falls back to
the bare name + doc rendering.
Fields§
§fields: Vec<NamedDoc>Public fields (struct/enum struct-variants).
variants: Vec<NamedDoc>Enum variants.
methods: Vec<NamedDoc>Methods on a struct/enum/derive.
extern_fns: Vec<NamedDoc>Extern fn declarations inside a link_extern { } block.
Trait Implementations§
Source§impl Clone for ItemDetail
impl Clone for ItemDetail
Source§fn clone(&self) -> ItemDetail
fn clone(&self) -> ItemDetail
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ItemDetail
impl Debug for ItemDetail
Source§impl Default for ItemDetail
impl Default for ItemDetail
Source§fn default() -> ItemDetail
fn default() -> ItemDetail
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ItemDetail
impl RefUnwindSafe for ItemDetail
impl Send for ItemDetail
impl Sync for ItemDetail
impl Unpin for ItemDetail
impl UnsafeUnpin for ItemDetail
impl UnwindSafe for ItemDetail
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].