pub enum WarnMode {
Off,
On,
Cont,
}Expand description
State of the built-in warning handler, mirroring the warnfoff /
warnfon / warnfcont static functions in upstream lauxlib.c.
Off is the install-time default (warnings disabled until warn("@on")).
On is ready to begin a fresh message. Cont means the previous warn
call had tocont set, so the next message part continues the current line
without re-printing the Lua warning: prefix.
Variants§
Trait Implementations§
impl Copy for WarnMode
impl Eq for WarnMode
impl StructuralPartialEq for WarnMode
Auto Trait Implementations§
impl Freeze for WarnMode
impl RefUnwindSafe for WarnMode
impl Send for WarnMode
impl Sync for WarnMode
impl Unpin for WarnMode
impl UnsafeUnpin for WarnMode
impl UnwindSafe for WarnMode
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