pub struct FunctionInfo {Show 23 fields
pub name: String,
pub start_line: u32,
pub end_line: u32,
pub name_col: u32,
pub name_end_col: u32,
pub line_count: u32,
pub complexity: u32,
pub parameter_count: u32,
pub parameter_types: Vec<TypeRef>,
pub chain_depth: u32,
pub switch_arms: u32,
pub external_refs: Vec<String>,
pub is_delegating: bool,
pub is_exported: bool,
pub comment_lines: u32,
pub referenced_fields: Vec<String>,
pub null_check_fields: Vec<String>,
pub switch_dispatch_target: Option<String>,
pub optional_param_count: u32,
pub called_functions: Vec<String>,
pub cognitive_complexity: u32,
pub body_hash: Option<String>,
pub return_type: Option<TypeRef>,
}Expand description
Function info from parsed source.
Fields§
§name: String§start_line: u32§end_line: u32§name_col: u32§name_end_col: u32§line_count: u32§complexity: u32§parameter_count: u32§parameter_types: Vec<TypeRef>§chain_depth: u32§switch_arms: u32§external_refs: Vec<String>§is_delegating: bool§is_exported: bool§comment_lines: u32§referenced_fields: Vec<String>§null_check_fields: Vec<String>§switch_dispatch_target: Option<String>§optional_param_count: u32§called_functions: Vec<String>§cognitive_complexity: u32§body_hash: Option<String>§return_type: Option<TypeRef>Trait Implementations§
Source§impl Clone for FunctionInfo
impl Clone for FunctionInfo
Source§fn clone(&self) -> FunctionInfo
fn clone(&self) -> FunctionInfo
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 FunctionInfo
impl Debug for FunctionInfo
impl ComponentType for FunctionInfo
impl Lift for FunctionInfo
impl Lower for FunctionInfo
Auto Trait Implementations§
impl Freeze for FunctionInfo
impl RefUnwindSafe for FunctionInfo
impl Send for FunctionInfo
impl Sync for FunctionInfo
impl Unpin for FunctionInfo
impl UnsafeUnpin for FunctionInfo
impl UnwindSafe for FunctionInfo
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