pub struct Writer { /* private fields */ }
Expand description
フォーマット結果を書き込むライター
Implementations§
Source§impl Writer
impl Writer
Sourcepub fn new(config: WriterConfig) -> Self
pub fn new(config: WriterConfig) -> Self
新しいライターを作成
Sourcepub async fn write_result(
&self,
result: &FormatResult,
) -> Result<(), Box<dyn Error>>
pub async fn write_result( &self, result: &FormatResult, ) -> Result<(), Box<dyn Error>>
単一のフォーマット結果を書き込む
Sourcepub async fn write_results(
&self,
results: &[FormatResult],
) -> Result<(), Box<dyn Error>>
pub async fn write_results( &self, results: &[FormatResult], ) -> Result<(), Box<dyn Error>>
複数のフォーマット結果を書き込む
Sourcepub fn check_results(results: &[FormatResult]) -> Result<(), Box<dyn Error>>
pub fn check_results(results: &[FormatResult]) -> Result<(), Box<dyn Error>>
チェックモードで結果を表示(書き込まない)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Writer
impl RefUnwindSafe for Writer
impl Send for Writer
impl Sync for Writer
impl Unpin for Writer
impl UnwindSafe for Writer
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