#[repr(C)]pub struct ConsoleLog {
pub lastMessage: [c_char; 1024],
pub pad401: u8,
/* private fields */
}
Expand description
§Note
The console has also confirmed that it does not support ANSI Color.
Fields§
§lastMessage: [c_char; 1024]
§pad401: u8
Implementations§
Source§impl ConsoleLog
impl ConsoleLog
Sourcepub fn get_singleton() -> Option<&'static ConsoleLog>
pub fn get_singleton() -> Option<&'static ConsoleLog>
Returns the singleton instance of Self
.
Sourcepub unsafe fn get_singleton_mut() -> Option<&'static mut ConsoleLog>
pub unsafe fn get_singleton_mut() -> Option<&'static mut ConsoleLog>
Returns the mutable singleton instance of Self
.
pub fn is_console_mode() -> bool
Sourcepub fn print(&mut self, fmt: *const c_char)
pub fn print(&mut self, fmt: *const c_char)
Print argument c-string.
§Example
use commonlibsse_ng::re::ConsoleLog::ConsoleLog;
if let Some(console) = unsafe { ConsoleLog::get_singleton_mut() } {
console.print(c"Hello World!".as_ptr());
};
§Note
More precisely, args: va_list follows after fmt, but since Rust does not support variadic arguments, it is omitted.
Auto Trait Implementations§
impl Freeze for ConsoleLog
impl RefUnwindSafe for ConsoleLog
impl Send for ConsoleLog
impl Sync for ConsoleLog
impl Unpin for ConsoleLog
impl UnwindSafe for ConsoleLog
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