pub enum Answer {
Warn,
Error,
}Expand description
What happens when the compiler meets something this row describes and cannot do it.
Variants§
Warn
Warn and carry on, which is what GCC does for an attribute it does not know. Ignoring
hot produces slower code and nothing worse.
Error
Refuse. Ignoring packed, aligned, section, no_sanitize or naked produces
wrong code rather than slow code, and wrong code that compiles is the worst outcome
available. This is section 13.4’s rule.
Trait Implementations§
impl Copy for Answer
impl Eq for Answer
Source§impl Ord for Answer
impl Ord for Answer
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Answer
impl PartialOrd for Answer
impl StructuralPartialEq for Answer
Auto Trait Implementations§
impl Freeze for Answer
impl RefUnwindSafe for Answer
impl Send for Answer
impl Sync for Answer
impl Unpin for Answer
impl UnsafeUnpin for Answer
impl UnwindSafe for Answer
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