pub enum LineCategory {
Code,
Comment,
Blank,
}Expand description
Coarse per-physical-line classification used by the code-ownership attribution pass in
sloc-core. Deliberately three-way (blame is physical-line based, and the ownership view
only needs code / comment / blank) so that per-author tallies sum exactly to a file’s
physical line count. This is not the IEEE policy classifier — it does not collapse
continuation lines or split the fine-grained mixed/docstring buckets.
Variants§
Trait Implementations§
Source§impl Clone for LineCategory
impl Clone for LineCategory
Source§fn clone(&self) -> LineCategory
fn clone(&self) -> LineCategory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LineCategory
Source§impl Debug for LineCategory
impl Debug for LineCategory
Source§impl<'de> Deserialize<'de> for LineCategory
impl<'de> Deserialize<'de> for LineCategory
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 Eq for LineCategory
Source§impl PartialEq for LineCategory
impl PartialEq for LineCategory
Source§impl Serialize for LineCategory
impl Serialize for LineCategory
impl StructuralPartialEq for LineCategory
Auto Trait Implementations§
impl Freeze for LineCategory
impl RefUnwindSafe for LineCategory
impl Send for LineCategory
impl Sync for LineCategory
impl Unpin for LineCategory
impl UnsafeUnpin for LineCategory
impl UnwindSafe for LineCategory
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