pub enum Severity {
Tips,
Untidy,
Warning,
Error,
Fatal,
}Expand description
Determines the output colour. User can also filter by minimum severity level: e.g. don’t show me Info-level messages.
The order of these enum values determines the level of severity they denote. Do not change the order unless you mean to change the logic of the program!
Variants§
Tips
These are things that aren’t necessarily wrong, but there may be a better, more idiomatic way to do it. This may also include performance issues.
Untidy
This code smells. The player is unlikely to be impacted directly, but developers working on this codebase will likely experience maintenance headaches.
Warning
This will result in glitches that will noticeably impact the player’s gaming experience. Missing translations are an example.
Error
This code probably doesn’t work as intended. The player may experience bugs.
Fatal
This is likely to cause crashes.
Implementations§
Trait Implementations§
source§impl IntoEnumIterator for Severity
impl IntoEnumIterator for Severity
source§impl Ord for Severity
impl Ord for Severity
source§impl PartialEq for Severity
impl PartialEq for Severity
source§impl PartialOrd for Severity
impl PartialOrd for Severity
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moreimpl Copy for Severity
impl Eq for Severity
impl StructuralEq for Severity
impl StructuralPartialEq for Severity
Auto Trait Implementations§
impl RefUnwindSafe for Severity
impl Send for Severity
impl Sync for Severity
impl Unpin for Severity
impl UnwindSafe for Severity
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
source§impl<T> Downcast for T
impl<T> Downcast for T
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().