File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,14 @@ pub use self::format::FileFormat;
15
15
pub use self :: source:: file:: FileSourceFile ;
16
16
pub use self :: source:: string:: FileSourceString ;
17
17
18
+ /// An extension of [`Format`] trait.
19
+ ///
20
+ /// Associates format with file extensions, therefore linking storage-agnostic notion of format to a file system.
21
+ pub trait FileStoredFormat : Format {
22
+ /// Returns a vector of file extensions, for instance `[yml, yaml]`.
23
+ fn file_extensions ( & self ) -> & ' static [ & ' static str ] ;
24
+ }
25
+
18
26
/// A configuration source backed up by a file.
19
27
///
20
28
/// It supports optional automatic file format discovery.
@@ -30,14 +38,6 @@ pub struct File<T, F> {
30
38
required : bool ,
31
39
}
32
40
33
- /// An extension of [`Format`] trait.
34
- ///
35
- /// Associates format with file extensions, therefore linking storage-agnostic notion of format to a file system.
36
- pub trait FileStoredFormat : Format {
37
- /// Returns a vector of file extensions, for instance `[yml, yaml]`.
38
- fn file_extensions ( & self ) -> & ' static [ & ' static str ] ;
39
- }
40
-
41
41
impl < F > File < FileSourceString , F >
42
42
where
43
43
F : FileStoredFormat + ' static ,
You can’t perform that action at this time.
0 commit comments