pub struct LogLine {
pub level: LogLevel,
pub text: String,
pub color: Vec4,
}Fields§
§level: LogLevel§text: String§color: Vec4Implementations§
Source§impl LogLine
impl LogLine
pub fn new(level: LogLevel, text: impl Into<String>) -> Self
pub fn info(text: impl Into<String>) -> Self
pub fn warn(text: impl Into<String>) -> Self
pub fn error(text: impl Into<String>) -> Self
pub fn success(text: impl Into<String>) -> Self
pub fn debug(text: impl Into<String>) -> Self
pub fn command(text: impl Into<String>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogLine
impl RefUnwindSafe for LogLine
impl Send for LogLine
impl Sync for LogLine
impl Unpin for LogLine
impl UnsafeUnpin for LogLine
impl UnwindSafe for LogLine
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