pub struct Formatter { /* private fields */ }
Expand description
Formatterのメイン構造体
Implementations§
Source§impl Formatter
impl Formatter
Sourcepub fn new(config: FormatterConfig) -> Self
pub fn new(config: FormatterConfig) -> Self
新しいFormatterを作成
Sourcepub async fn from_config_file() -> Result<Self, Box<dyn Error>>
pub async fn from_config_file() -> Result<Self, Box<dyn Error>>
設定ファイルからFormatterを作成
Sourcepub async fn format_file(
&self,
file_path: &PathBuf,
) -> Result<FormatResult, Box<dyn Error>>
pub async fn format_file( &self, file_path: &PathBuf, ) -> Result<FormatResult, Box<dyn Error>>
単一ファイルをフォーマット
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Formatter
impl !RefUnwindSafe for Formatter
impl !Send for Formatter
impl !Sync for Formatter
impl Unpin for Formatter
impl !UnwindSafe for Formatter
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