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
or fmt_url
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 exceptions
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)
Implementations§
Trait Implementations§
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