pub struct ReportExporter;Expand description
Report exporter for various formats.
Implementations§
Source§impl ReportExporter
impl ReportExporter
Sourcepub fn export_to_string(report: &ProfileReport, format: ReportFormat) -> String
pub fn export_to_string(report: &ProfileReport, format: ReportFormat) -> String
Export a profile report to a string.
Sourcepub fn export_to_file<P: AsRef<Path>>(
report: &ProfileReport,
path: P,
format: ReportFormat,
) -> Result<()>
pub fn export_to_file<P: AsRef<Path>>( report: &ProfileReport, path: P, format: ReportFormat, ) -> Result<()>
Export a profile report to a file.
Auto Trait Implementations§
impl Freeze for ReportExporter
impl RefUnwindSafe for ReportExporter
impl Send for ReportExporter
impl Sync for ReportExporter
impl Unpin for ReportExporter
impl UnwindSafe for ReportExporter
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