pub(crate) struct FormatterSpec {
pub(crate) command: String,
pub(crate) args: Vec<String>,
pub(crate) inputs: Vec<RepositoryPath>,
pub(crate) project_root_file: RepositoryPath,
}Expand description
A formatter supplied by the evaluated configuration.
Fields§
§command: StringThe formatter executable.
args: Vec<String>Arguments passed before the target file.
inputs: Vec<RepositoryPath>Other managed files the formatter reads, besides its target.
project_root_file: RepositoryPathThe repository-relative file that identifies the formatter’s project root.
Trait Implementations§
Source§impl Clone for FormatterSpec
impl Clone for FormatterSpec
Source§fn clone(&self) -> FormatterSpec
fn clone(&self) -> FormatterSpec
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 moreSource§impl Debug for FormatterSpec
impl Debug for FormatterSpec
impl Eq for FormatterSpec
Source§impl<'ʄ> Facet<'ʄ> for FormatterSpec
impl<'ʄ> Facet<'ʄ> for FormatterSpec
Source§impl Ord for FormatterSpec
impl Ord for FormatterSpec
Source§fn cmp(&self, other: &FormatterSpec) -> Ordering
fn cmp(&self, other: &FormatterSpec) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for FormatterSpec
impl PartialEq for FormatterSpec
Source§impl PartialOrd for FormatterSpec
impl PartialOrd for FormatterSpec
impl StructuralPartialEq for FormatterSpec
Auto Trait Implementations§
impl Freeze for FormatterSpec
impl RefUnwindSafe for FormatterSpec
impl Send for FormatterSpec
impl Sync for FormatterSpec
impl Unpin for FormatterSpec
impl UnsafeUnpin for FormatterSpec
impl UnwindSafe for FormatterSpec
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.