pub struct FileSource<T> { /* private fields */ }Expand description
Represents a source that reads configuration data from a file.
This struct is generic over T which is the parser type used to parse the
file contents, and U which is the type of the path (defaults to
PathBuf).
§Type Parameters
T: The parser type that implements theParsertrait for parsing file contents.U: The path type that implementsAsRef<Path>, defaults toPathBuf.
Implementations§
Trait Implementations§
Source§impl<T> Debug for FileSource<T>
impl<T> Debug for FileSource<T>
Auto Trait Implementations§
impl<T> Freeze for FileSource<T>
impl<T> RefUnwindSafe for FileSource<T>where
T: RefUnwindSafe,
impl<T> Send for FileSource<T>where
T: Send,
impl<T> Sync for FileSource<T>where
T: Sync,
impl<T> Unpin for FileSource<T>where
T: Unpin,
impl<T> UnwindSafe for FileSource<T>where
T: UnwindSafe,
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