pub struct FormatterInfo {
pub name: &'static str,
pub command: &'static str,
pub extensions: &'static [&'static str],
pub available: bool,
}Expand description
Information about a formatter.
Fields§
§name: &'static strFormatter name (e.g., “rustfmt”).
command: &'static strCommand to invoke.
extensions: &'static [&'static str]File extensions this formatter handles.
available: boolWhether the formatter is available on the system.
Trait Implementations§
Source§impl Clone for FormatterInfo
impl Clone for FormatterInfo
Source§fn clone(&self) -> FormatterInfo
fn clone(&self) -> FormatterInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FormatterInfo
impl RefUnwindSafe for FormatterInfo
impl Send for FormatterInfo
impl Sync for FormatterInfo
impl Unpin for FormatterInfo
impl UnsafeUnpin for FormatterInfo
impl UnwindSafe for FormatterInfo
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