pub struct FunctionLimits {
pub max_lines: usize,
pub max_parameters: usize,
pub max_complexity: usize,
}Expand description
Function size limits
Fields§
§max_lines: usizeMaximum lines per function
max_parameters: usizeMaximum parameters per function
max_complexity: usizeMaximum cyclomatic complexity
Trait Implementations§
Source§impl Clone for FunctionLimits
impl Clone for FunctionLimits
Source§fn clone(&self) -> FunctionLimits
fn clone(&self) -> FunctionLimits
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 FunctionLimits
impl Debug for FunctionLimits
Source§impl<'de> Deserialize<'de> for FunctionLimits
impl<'de> Deserialize<'de> for FunctionLimits
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
Auto Trait Implementations§
impl Freeze for FunctionLimits
impl RefUnwindSafe for FunctionLimits
impl Send for FunctionLimits
impl Sync for FunctionLimits
impl Unpin for FunctionLimits
impl UnwindSafe for FunctionLimits
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