pub enum WarnState {
Off,
On,
}Expand description
PUC 5.4+ default warnf state. The base library’s warn function flips
between Off and On via the @on / @off control messages; any other
@<word> control is silently ignored, mirroring lauxlib.c::checkcontrol.
Variants§
Off
warn calls are silently dropped (default after warn("@off")).
On
warn calls are delivered to stderr (after warn("@on")).
Trait Implementations§
impl Copy for WarnState
impl Eq for WarnState
impl StructuralPartialEq for WarnState
Auto Trait Implementations§
impl Freeze for WarnState
impl RefUnwindSafe for WarnState
impl Send for WarnState
impl Sync for WarnState
impl Unpin for WarnState
impl UnsafeUnpin for WarnState
impl UnwindSafe for WarnState
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