pub enum Warning {
NoWarning,
UndefinedVariable,
DirectEval,
EvalDisabled,
UnresolvedStaticRequire,
Misc,
}Expand description
A warning category. Ported verbatim from hermes/Support/Warnings.def.
NoWarning is special and must remain the first variant.
Variants§
NoWarning
All warnings. Special; its description is only used in the context of -Werror and -Wno-error.
UndefinedVariable
Warning when an undefined variable is referenced. (-Wundefined-variable)
DirectEval
Warning when attempting a direct (local) eval. (-Wdirect-eval)
EvalDisabled
Warning if invoking eval() when it is disabled. (-Weval-disabled)
UnresolvedStaticRequire
Warning when require calls cannot be resolved statically. (-Wunresolved-static-require)
Misc
Miscellaneous warnings. (hidden: -Wmisc)
Implementations§
Trait Implementations§
impl Copy for Warning
impl Eq for Warning
impl StructuralPartialEq for Warning
Auto Trait Implementations§
impl Freeze for Warning
impl RefUnwindSafe for Warning
impl Send for Warning
impl Sync for Warning
impl Unpin for Warning
impl UnsafeUnpin for Warning
impl UnwindSafe for Warning
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