Struct file_content::TextData
source · pub struct TextData {
pub data: String,
pub encoding: Encoding,
}
Expand description
A struct to hold the data of a text file and the encoding used to read it.
Fields§
§data: String
§encoding: Encoding
Trait Implementations§
source§impl PartialEq for TextData
impl PartialEq for TextData
impl StructuralPartialEq for TextData
Auto Trait Implementations§
impl Freeze for TextData
impl RefUnwindSafe for TextData
impl Send for TextData
impl Sync for TextData
impl Unpin for TextData
impl UnwindSafe for TextData
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