pub struct ClassInfo {Show 17 fields
pub name: String,
pub start_line: usize,
pub end_line: usize,
pub method_count: usize,
pub line_count: usize,
pub is_exported: bool,
pub delegating_method_count: usize,
pub field_count: usize,
pub field_names: Vec<String>,
pub field_types: Vec<String>,
pub has_behavior: bool,
pub is_interface: bool,
pub parent_name: Option<String>,
pub override_count: usize,
pub self_call_count: usize,
pub has_listener_field: bool,
pub has_notify_method: bool,
}Expand description
Extracted class/struct info from AST.
Fields§
§name: String§start_line: usize§end_line: usize§method_count: usize§line_count: usize§is_exported: boolWhether this class is exported.
delegating_method_count: usizeNumber of methods that only delegate to another object.
field_count: usizeNumber of fields/properties.
field_names: Vec<String>Field names declared in this class.
field_types: Vec<String>Field types (parallel to field_names).
has_behavior: boolWhether the class has non-accessor methods (business logic).
is_interface: boolWhether this is an interface or abstract class.
parent_name: Option<String>Parent class/trait name (for Refused Bequest).
override_count: usizeNumber of overridden methods (for Refused Bequest).
self_call_count: usizeNumber of self-method calls in the longest method (for Template Method).
has_listener_field: boolWhether the class has a listener/callback collection field.
has_notify_method: boolWhether the class has a notify/emit method.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClassInfo
impl RefUnwindSafe for ClassInfo
impl Send for ClassInfo
impl Sync for ClassInfo
impl Unpin for ClassInfo
impl UnsafeUnpin for ClassInfo
impl UnwindSafe for ClassInfo
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> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§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