pub struct TextMetadata {
pub line_count: usize,
pub char_count: usize,
}Expand description
Metadata for text files.
Fields§
§line_count: usizeNumber of lines in the text file
char_count: usizeNumber of characters in the text file
Trait Implementations§
Source§impl Clone for TextMetadata
impl Clone for TextMetadata
Source§fn clone(&self) -> TextMetadata
fn clone(&self) -> TextMetadata
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 TextMetadata
impl Debug for TextMetadata
Source§impl<'de> Deserialize<'de> for TextMetadata
impl<'de> Deserialize<'de> for TextMetadata
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 TextMetadata
impl RefUnwindSafe for TextMetadata
impl Send for TextMetadata
impl Sync for TextMetadata
impl Unpin for TextMetadata
impl UnwindSafe for TextMetadata
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