Crate file_content Copy item path Source File A file representation that can be used to pair a file path with its content.
File provides convenience methods for working with files on disk, or in memory. TextData A struct to hold the data of a text file and the encoding used to read it. Encoding Represents the supported encodings. FileContent An enum that represents the possible contents of a file FileError Represents the possible errors that can occur when working with File structs. TextDataError The possible errors that can occur when working with TextData structs. read_from_reader Read the content and return as a String if it can be decoded as one of the supported encodings from Encoding . read_to_string Read the contents of a file from the given path and return as a String if it can be decoded as one of the supported encodings from Encoding .