Enum rust_assistant::ItemType
source · pub enum ItemType {
All,
Struct,
Enum,
Trait,
ImplType,
ImplTraitForType,
Macro,
AttributeMacro,
Function,
TypeAlias,
}
Expand description
Defines various types of items that can be searched for in a crate.
This enum lists different types of code constructs like structs, enums, traits, etc.
Variants§
All
Represents all item types.
Struct
A struct definition.
Enum
An enum definition.
Trait
A trait definition.
ImplType
Type implementation.
ImplTraitForType
Trait implementation for a type.
Macro
A macro definition.
AttributeMacro
An attribute macro.
Function
A standalone function.
TypeAlias
A type alias.
Trait Implementations§
source§impl<'de> Deserialize<'de> for ItemType
impl<'de> Deserialize<'de> for ItemType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for ItemType
impl Ord for ItemType
source§impl PartialEq for ItemType
impl PartialEq for ItemType
source§impl PartialOrd for ItemType
impl PartialOrd for ItemType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ItemType
impl Eq for ItemType
impl StructuralPartialEq for ItemType
Auto Trait Implementations§
impl Freeze for ItemType
impl RefUnwindSafe for ItemType
impl Send for ItemType
impl Sync for ItemType
impl Unpin for ItemType
impl UnwindSafe for ItemType
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