pub enum FormatterValue {
Single(String),
Multiple(Vec<String>),
}Expand description
NEW: Language → Formatter mapping value (single formatter or chain)
Variants§
Single(String)
Single formatter: r = “air”
Multiple(Vec<String>)
Multiple formatters (sequential): python = [“isort”, “black”]
Trait Implementations§
Source§impl Clone for FormatterValue
impl Clone for FormatterValue
Source§fn clone(&self) -> FormatterValue
fn clone(&self) -> FormatterValue
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 FormatterValue
impl Debug for FormatterValue
Source§impl<'de> Deserialize<'de> for FormatterValue
impl<'de> Deserialize<'de> for FormatterValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FormatterValue
impl PartialEq for FormatterValue
impl StructuralPartialEq for FormatterValue
Auto Trait Implementations§
impl Freeze for FormatterValue
impl RefUnwindSafe for FormatterValue
impl Send for FormatterValue
impl Sync for FormatterValue
impl Unpin for FormatterValue
impl UnsafeUnpin for FormatterValue
impl UnwindSafe for FormatterValue
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