pub enum WarningMode {
Ignore,
Report,
Error,
}
Expand description
How parse_with_warnings
treats compatibility warnings.
Variants§
Ignore
Throw warnings away.
Report
Report warnings to stderr and continue processing.
Error
Report warnings to stderr and abort the program.
Trait Implementations§
Source§impl Clone for WarningMode
impl Clone for WarningMode
Source§fn clone(&self) -> WarningMode
fn clone(&self) -> WarningMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WarningMode
impl Debug for WarningMode
Source§impl Hash for WarningMode
impl Hash for WarningMode
Source§impl Ord for WarningMode
impl Ord for WarningMode
Source§fn cmp(&self, other: &WarningMode) -> Ordering
fn cmp(&self, other: &WarningMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WarningMode
impl PartialEq for WarningMode
Source§impl PartialOrd for WarningMode
impl PartialOrd for WarningMode
impl Copy for WarningMode
impl Eq for WarningMode
impl StructuralPartialEq for WarningMode
Auto Trait Implementations§
impl Freeze for WarningMode
impl RefUnwindSafe for WarningMode
impl Send for WarningMode
impl Sync for WarningMode
impl Unpin for WarningMode
impl UnwindSafe for WarningMode
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