pub struct Locs {
pub blank: u64,
pub logic: u64,
pub docs: u64,
pub comments: u64,
}Expand description
Lines of code counts for a single context (code, tests, or examples)
Fields§
§blank: u64Blank lines (whitespace only)
logic: u64Executable/logic lines (actual code, not comments or blanks)
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
Source§impl SubAssign for Locs
impl SubAssign for Locs
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreimpl 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