#[non_exhaustive]pub enum FileFormat {
Toml,
Json,
Yaml,
Ini,
Ron,
Json5,
Corn,
}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 (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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)
Corn
Available on crate feature
corn only.Corn (parsed with libcorn)
Trait Implementations§
Source§impl Clone for FileFormat
impl Clone for FileFormat
Source§fn clone(&self) -> FileFormat
fn clone(&self) -> FileFormat
Returns a duplicate 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§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§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.