pub enum FormatWrapper {
Enum(FileFormat),
Ason,
Hcl,
Hjson,
Properties,
YamlNg,
}
Variants§
Trait Implementations§
Source§impl Clone for FormatWrapper
impl Clone for FormatWrapper
Source§fn clone(&self) -> FormatWrapper
fn clone(&self) -> FormatWrapper
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 FormatWrapper
impl Debug for FormatWrapper
Source§impl FileStoredFormat for FormatWrapper
impl FileStoredFormat for FormatWrapper
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 FormatWrapper
impl Format for FormatWrapper
Source§impl From<Ason> for FormatWrapper
impl From<Ason> for FormatWrapper
Source§impl From<FileFormat> for FormatWrapper
impl From<FileFormat> for FormatWrapper
Source§fn from(f: FileFormat) -> Self
fn from(f: FileFormat) -> Self
Converts to this type from the input type.
Source§impl From<Hcl> for FormatWrapper
impl From<Hcl> for FormatWrapper
Source§impl From<Hjson> for FormatWrapper
impl From<Hjson> for FormatWrapper
Source§impl From<Properties> for FormatWrapper
impl From<Properties> for FormatWrapper
Source§fn from(_: Properties) -> Self
fn from(_: Properties) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FormatWrapper
impl RefUnwindSafe for FormatWrapper
impl Send for FormatWrapper
impl Sync for FormatWrapper
impl Unpin for FormatWrapper
impl UnwindSafe for FormatWrapper
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