pub struct Locs {
pub blanks: u64,
pub code: u64,
pub docs: u64,
pub comments: u64,
}Expand description
Lines of code counts for a single context (main, tests, or examples)
Fields§
§blanks: u64Blank lines (whitespace only)
code: u64Code lines
docs: u64Documentation comment lines (///, //!, /** */, /*! */)
comments: u64Regular comment lines (//, /* */)
Implementations§
Trait Implementations§
Source§impl AddAssign for Locs
impl AddAssign for Locs
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl<'de> Deserialize<'de> for Locs
impl<'de> Deserialize<'de> for Locs
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
impl Copy for Locs
impl Eq for Locs
impl StructuralPartialEq for Locs
Auto Trait Implementations§
impl Freeze for Locs
impl RefUnwindSafe for Locs
impl Send for Locs
impl Sync for Locs
impl Unpin for Locs
impl UnwindSafe for Locs
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