Struct treefmt::eval_cache::FormatterInfo
source · [−]pub struct FormatterInfo {
pub command: PathBuf,
pub command_resolved: PathBuf,
pub options: Vec<String>,
pub work_dir: PathBuf,
pub command_meta: FileMeta,
pub command_resolved_meta: FileMeta,
}
Expand description
Metadata about the formatter
Fields
command: PathBuf
Absolute path to the command
command_resolved: PathBuf
Absolute and symlink-resolved path to the command
options: Vec<String>
formatter options
work_dir: PathBuf
work_dir
command_meta: FileMeta
Metadata of the command
command_resolved_meta: FileMeta
Metadata of the above
Trait Implementations
sourceimpl Clone for FormatterInfo
impl Clone for FormatterInfo
sourcefn clone(&self) -> FormatterInfo
fn clone(&self) -> FormatterInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FormatterInfo
impl Debug for FormatterInfo
sourceimpl<'de> Deserialize<'de> for FormatterInfo
impl<'de> Deserialize<'de> for FormatterInfo
sourcefn 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
sourceimpl PartialEq<FormatterInfo> for FormatterInfo
impl PartialEq<FormatterInfo> for FormatterInfo
sourcefn eq(&self, other: &FormatterInfo) -> bool
fn eq(&self, other: &FormatterInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FormatterInfo) -> bool
fn ne(&self, other: &FormatterInfo) -> bool
This method tests for !=
.
sourceimpl Serialize for FormatterInfo
impl Serialize for FormatterInfo
impl Eq for FormatterInfo
impl StructuralEq for FormatterInfo
impl StructuralPartialEq for FormatterInfo
Auto Trait Implementations
impl RefUnwindSafe for FormatterInfo
impl Send for FormatterInfo
impl Sync for FormatterInfo
impl Unpin for FormatterInfo
impl UnwindSafe for FormatterInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more