pub enum StructureKind {
Function,
Method,
Class,
Struct,
Interface,
Enum,
Module,
Trait,
Impl,
Namespace,
Other(String),
}Expand description
The kind of structural item found in source code.
Categorizes top-level and nested declarations such as functions, classes,
structs, enums, traits, and more. Use Other for
language-specific constructs that do not fit a standard category.
Variants§
Trait Implementations§
Source§impl Clone for StructureKind
impl Clone for StructureKind
Source§fn clone(&self) -> StructureKind
fn clone(&self) -> StructureKind
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 StructureKind
impl Debug for StructureKind
Source§impl Default for StructureKind
impl Default for StructureKind
Source§fn default() -> StructureKind
fn default() -> StructureKind
Returns the “default value” for a type. Read more
Source§impl Hash for StructureKind
impl Hash for StructureKind
Source§impl PartialEq for StructureKind
impl PartialEq for StructureKind
impl Eq for StructureKind
impl StructuralPartialEq for StructureKind
Auto Trait Implementations§
impl Freeze for StructureKind
impl RefUnwindSafe for StructureKind
impl Send for StructureKind
impl Sync for StructureKind
impl Unpin for StructureKind
impl UnsafeUnpin for StructureKind
impl UnwindSafe for StructureKind
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