pub struct CodeSlice {
pub ext: String,
pub lines: usize,
pub tokens: usize,
}Expand description
One file extension’s weight in a snapshot. ext is lowercase and carries no
dot; a file with no extension is (none), and the long tail is other.
Fields§
§ext: String§lines: usize§tokens: usizeTrait Implementations§
impl StructuralPartialEq for CodeSlice
Auto Trait Implementations§
impl Freeze for CodeSlice
impl RefUnwindSafe for CodeSlice
impl Send for CodeSlice
impl Sync for CodeSlice
impl Unpin for CodeSlice
impl UnsafeUnpin for CodeSlice
impl UnwindSafe for CodeSlice
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