Enum confget::defs::BackendKind
source · #[non_exhaustive]pub enum BackendKind {
IniNom,
IniRE,
}
Expand description
The configuration backend to use for parsing the input data.
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.
IniNom
Parse INI-style files and their sections using the Nom-based backend.
IniRE
Parse INI-style files and their sections using the legacy regex-based backend.
Implementations§
source§impl BackendKind
impl BackendKind
sourcepub const INI_RE: &'static str = "ini-regex"
pub const INI_RE: &'static str = "ini-regex"
The name of the legacy regex-based INI-style file backend.
sourcepub const fn get_preferred_ini_backend() -> Self
pub const fn get_preferred_ini_backend() -> Self
Return the most suitable backend type for INI-style files.
sourcepub const fn get_preferred_ini_backend_name() -> &'static str
pub const fn get_preferred_ini_backend_name() -> &'static str
Return the name of the most suitable backend type for INI-style files.
Trait Implementations§
source§impl AsRef<str> for BackendKind
impl AsRef<str> for BackendKind
source§impl Debug for BackendKind
impl Debug for BackendKind
source§impl FromStr for BackendKind
impl FromStr for BackendKind
source§impl PartialEq<BackendKind> for BackendKind
impl PartialEq<BackendKind> for BackendKind
source§fn eq(&self, other: &BackendKind) -> bool
fn eq(&self, other: &BackendKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BackendKind
impl StructuralEq for BackendKind
impl StructuralPartialEq for BackendKind
Auto Trait Implementations§
impl RefUnwindSafe for BackendKind
impl Send for BackendKind
impl Sync for BackendKind
impl Unpin for BackendKind
impl UnwindSafe for BackendKind
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