pub enum AnalyzedItem {
Function(FunctionInfo),
Struct(StructInfo),
Enum(EnumInfo),
Trait(TraitInfo),
Impl(ImplInfo),
Module(ModuleInfo),
TypeAlias(TypeAliasInfo),
Const(ConstInfo),
Static(StaticInfo),
}Expand description
Analyzed item from Rust source code
Variants§
Function(FunctionInfo)
Struct(StructInfo)
Enum(EnumInfo)
Trait(TraitInfo)
Impl(ImplInfo)
Module(ModuleInfo)
TypeAlias(TypeAliasInfo)
Const(ConstInfo)
Static(StaticInfo)
Implementations§
Source§impl AnalyzedItem
impl AnalyzedItem
pub fn name(&self) -> &str
pub fn kind(&self) -> &'static str
pub fn visibility(&self) -> Option<Visibility>
pub fn documentation(&self) -> Option<&str>
pub fn source_location(&self) -> Option<&SourceLocation>
Sourcepub fn module_path(&self) -> &[String]
pub fn module_path(&self) -> &[String]
Get the module path for this item (e.g., [“serde”, “de”])
Sourcepub fn qualified_name(&self) -> String
pub fn qualified_name(&self) -> String
Get fully qualified path (e.g., “serde::de::Deserialize”)
Sourcepub fn definition(&self) -> String
pub fn definition(&self) -> String
Get full definition as code string
Trait Implementations§
Source§impl Clone for AnalyzedItem
impl Clone for AnalyzedItem
Source§fn clone(&self) -> AnalyzedItem
fn clone(&self) -> AnalyzedItem
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 moreAuto Trait Implementations§
impl Freeze for AnalyzedItem
impl RefUnwindSafe for AnalyzedItem
impl Send for AnalyzedItem
impl Sync for AnalyzedItem
impl Unpin for AnalyzedItem
impl UnsafeUnpin for AnalyzedItem
impl UnwindSafe for AnalyzedItem
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more