Struct hydroconf::File [−][src]
pub struct File<T> where
T: FileSource, { /* fields omitted */ }
Implementations
impl File<FileSourceString>
[src]
impl File<FileSourceString>
[src]pub fn from_str(s: &str, format: FileFormat) -> File<FileSourceString>
[src]
impl File<FileSourceFile>
[src]
impl File<FileSourceFile>
[src]pub fn new(name: &str, format: FileFormat) -> File<FileSourceFile>
[src]
pub fn with_name(name: &str) -> File<FileSourceFile>
[src]
pub fn with_name(name: &str) -> File<FileSourceFile>
[src]Given the basename of a file, will attempt to locate a file by setting its extension to a registered format.
Trait Implementations
impl<'a> From<&'a Path> for File<FileSourceFile>
[src]
impl<'a> From<&'a Path> for File<FileSourceFile>
[src]pub fn from(path: &'a Path) -> File<FileSourceFile>
[src]
pub fn from(path: &'a Path) -> File<FileSourceFile>
[src]Performs the conversion.
impl From<PathBuf> for File<FileSourceFile>
[src]
impl From<PathBuf> for File<FileSourceFile>
[src]pub fn from(path: PathBuf) -> File<FileSourceFile>
[src]
pub fn from(path: PathBuf) -> File<FileSourceFile>
[src]Performs the conversion.
impl<T> Source for File<T> where
T: FileSource + 'static + Sync + Send,
[src]
impl<T> Source for File<T> where
T: FileSource + 'static + Sync + Send,
[src]pub fn clone_into_box(&self) -> Box<dyn Source + 'static + Sync + Send, Global>
[src]
pub fn collect(
&self
) -> Result<HashMap<String, Value, RandomState>, ConfigError>
[src]
pub fn collect(
&self
) -> Result<HashMap<String, Value, RandomState>, ConfigError>
[src]Collect all configuration properties available from this source and return a HashMap. Read more
fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for File<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for File<T> where
T: Send,
T: Send,
impl<T> Sync for File<T> where
T: Sync,
T: Sync,
impl<T> Unpin for File<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for File<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more