pub struct File<T> where
T: FileSource, { /* private fields */ }
Implementations
sourceimpl File<FileSourceString>
impl File<FileSourceString>
pub fn from_str(s: &str, format: FileFormat) -> Self
sourceimpl File<FileSourceFile>
impl File<FileSourceFile>
Trait Implementations
sourceimpl<'a> From<&'a Path> for File<FileSourceFile>
impl<'a> From<&'a Path> for File<FileSourceFile>
sourceimpl From<PathBuf> for File<FileSourceFile>
impl From<PathBuf> for File<FileSourceFile>
sourceimpl<T: FileSource> Source for File<T> where
T: 'static,
T: Sync + Send,
impl<T: FileSource> Source for File<T> where
T: 'static,
T: Sync + Send,
fn clone_into_box(&self) -> Box<dyn Source + Send + Sync>
sourcefn collect(&self) -> Result<HashMap<String, Value>, ConfigError>
fn collect(&self) -> Result<HashMap<String, Value>, ConfigError>
Collect all configuration properties available from this source and return a HashMap. Read more
fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError>
Auto Trait Implementations
impl<T> RefUnwindSafe for File<T> where
T: RefUnwindSafe,
impl<T> Send for File<T> where
T: Send,
impl<T> Sync for File<T> where
T: Sync,
impl<T> Unpin for File<T> where
T: Unpin,
impl<T> UnwindSafe for File<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more