session_log 0.4.1

A simple session log library for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11


/// Output trait is used to define a common interface for all types that can both be written to a file
/// and printed to the console. This is the basic traits for each components of the log.
pub trait Output {
  /// Writes a string representation that is suitable for writing to a file.
  fn for_write(&self, f: &mut impl std::fmt::Write);

  /// Writes a string representation that is suitable for printing to the console.
  fn for_print(&self, f: &mut impl std::fmt::Write);
}