Enum rustdoc_seeker::TypeItem
source · pub enum TypeItem {
Show 23 variants
Module(Atom),
ExternCrate(Atom),
Import(Atom),
Struct(Atom),
Enum(Atom),
Function(Atom),
Typedef(Atom),
Static(Atom),
Trait(Atom),
Impl(Atom),
TyMethod(Atom),
Method(Atom),
StructField(Atom),
Variant(Atom),
Macro(Atom),
Primitive(Atom),
AssociatedType(Atom),
Constant(Atom),
AssociatedConst(Atom),
Union(Atom),
ForeignType(Atom),
Keyword(Atom),
Existential(Atom),
}Expand description
TypeItem represent an item with type,
Use Display to get the type dot name format of the item
§Example
assert_eq!("module.vec", TypeItme::Module(vec));
assert_eq!("macro.vec", TypeItme::Macro(vec));
assert_eq!("fn.vec", TypeItme::Function(vec)); // the only two exceptions
assert_eq!("type.vec", TypeItme::Typedef(vec)); // the only two exceptionsVariants§
Module(Atom)
ExternCrate(Atom)
Import(Atom)
Struct(Atom)
Enum(Atom)
Function(Atom)
Typedef(Atom)
Static(Atom)
Trait(Atom)
Impl(Atom)
TyMethod(Atom)
Method(Atom)
StructField(Atom)
Variant(Atom)
Macro(Atom)
Primitive(Atom)
AssociatedType(Atom)
Constant(Atom)
AssociatedConst(Atom)
Union(Atom)
ForeignType(Atom)
Keyword(Atom)
Existential(Atom)
Implementations§
Trait Implementations§
source§impl PartialEq for TypeItem
impl PartialEq for TypeItem
impl Eq for TypeItem
impl StructuralPartialEq for TypeItem
Auto Trait Implementations§
impl Freeze for TypeItem
impl RefUnwindSafe for TypeItem
impl Send for TypeItem
impl Sync for TypeItem
impl Unpin for TypeItem
impl UnwindSafe for TypeItem
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)