pub struct MciWriteStream;
Expand description
A unit struct that implements Write
, allowing it to be used with the write!
and writeln!
macros.
Usage:
ⓘ
write!(MciWriteStream, "Hello, World!\n").unwrap();
The implementations of Write::write_str
and Write::write_char
will never return an Err
value.
Text written will appear in the game chat. Text will not appear until a newline is written.
For cleaner syntax, see the [print!
] and [println!
] macros.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MciWriteStream
impl RefUnwindSafe for MciWriteStream
impl Send for MciWriteStream
impl Sync for MciWriteStream
impl Unpin for MciWriteStream
impl UnwindSafe for MciWriteStream
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