pub enum FileFormat {
Toml,
Json,
Yaml,
Ini,
Ron,
Json5,
}
Expand description
File formats provided by the library.
Although it is possible to define custom formats using Format
trait it is recommended to use FileFormat
if possible.
Variants§
Toml
Available on crate feature
toml
only.TOML (parsed with toml)
Json
Available on crate feature
json
only.JSON (parsed with serde_json
)
Yaml
Available on crate feature
yaml
only.YAML (parsed with yaml_rust2
)
Ini
Available on crate feature
ini
only.INI (parsed with rust_ini
)
Ron
Available on crate feature
ron
only.RON (parsed with ron)
Json5
Available on crate feature
json5
only.JSON5 (parsed with json5)
Trait Implementations§
source§impl Clone for FileFormat
impl Clone for FileFormat
source§fn clone(&self) -> FileFormat
fn clone(&self) -> FileFormat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FileFormat
impl Debug for FileFormat
source§impl FileStoredFormat for FileFormat
impl FileStoredFormat for FileFormat
source§fn file_extensions(&self) -> &'static [&'static str]
fn file_extensions(&self) -> &'static [&'static str]
Returns a vector of file extensions, for instance
[yml, yaml]
.source§impl Format for FileFormat
impl Format for FileFormat
source§impl Hash for FileFormat
impl Hash for FileFormat
source§impl PartialEq for FileFormat
impl PartialEq for FileFormat
impl Copy for FileFormat
impl Eq for FileFormat
impl StructuralPartialEq for FileFormat
Auto Trait Implementations§
impl Freeze for FileFormat
impl RefUnwindSafe for FileFormat
impl Send for FileFormat
impl Sync for FileFormat
impl Unpin for FileFormat
impl UnwindSafe for FileFormat
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.