pub struct Log { /* private fields */ }
Expand description
this is the structure that a log should have, this is global for any level we can use them as follows:
use catsh_core::logs::{Log, LogLevel};
// this print a log
Log::new(LogLevel::Warning, 0, "This is a test log.").show();
// this return a log
let my_log: Log = Log::new(LogLevel::Warning, 0, "This is a test log.");
// we can also print an existing log
my_log.show();
these are some uses that this structure can be given.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Log
impl RefUnwindSafe for Log
impl Send for Log
impl Sync for Log
impl Unpin for Log
impl UnwindSafe for Log
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