Trait fif::formats::FormatSteps
source · pub trait FormatSteps {
// Required methods
fn rename<W: Write>(
&self,
_f: &mut W,
_from: &Path,
_to: &Path
) -> Result<()>;
fn no_known_extension<W: Write>(
&self,
_f: &mut W,
_path: &Path
) -> Result<()>;
fn unreadable<W: Write>(&self, _f: &mut W, _path: &Path) -> Result<()>;
fn unknown_type<W: Write>(&self, _f: &mut W, _path: &Path) -> Result<()>;
fn header<W: Write>(&self, _f: &mut W) -> Result<()>;
fn footer<W: Write>(&self, _f: &mut W) -> Result<()>;
// Provided method
fn write_steps<W: Write>(
&self,
f: &mut W,
findings: &[Findings],
errors: &[ScanError<'_>]
) -> Result<()> { ... }
}
Required Methods§
fn rename<W: Write>(&self, _f: &mut W, _from: &Path, _to: &Path) -> Result<()>
fn no_known_extension<W: Write>(&self, _f: &mut W, _path: &Path) -> Result<()>
fn unreadable<W: Write>(&self, _f: &mut W, _path: &Path) -> Result<()>
fn unknown_type<W: Write>(&self, _f: &mut W, _path: &Path) -> Result<()>
fn header<W: Write>(&self, _f: &mut W) -> Result<()>
Provided Methods§
fn write_steps<W: Write>( &self, f: &mut W, findings: &[Findings], errors: &[ScanError<'_>] ) -> Result<()>
Object Safety§
This trait is not object safe.