#[non_exhaustive]pub enum WarningCode {
CommentDropped,
CommentStyleDegraded,
ValueDropped,
TypeDegraded,
Unknown(c_int),
}Expand description
What kind of loss a Warning describes. Mirrors FigWarningCode.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CommentDropped
A carried comment is not emitted at all.
CommentStyleDegraded
A block comment is rendered as a run of line comments.
ValueDropped
A node is removed entirely (the target cannot represent it even degraded).
TypeDegraded
An extended/non-finite value is rendered as a poorer type.
Unknown(c_int)
A code this binding does not recognize (a future core may add codes).
Trait Implementations§
Source§impl Clone for WarningCode
impl Clone for WarningCode
impl Copy for WarningCode
Source§impl Debug for WarningCode
impl Debug for WarningCode
impl Eq for WarningCode
Source§impl PartialEq for WarningCode
impl PartialEq for WarningCode
impl StructuralPartialEq for WarningCode
Auto Trait Implementations§
impl Freeze for WarningCode
impl RefUnwindSafe for WarningCode
impl Send for WarningCode
impl Sync for WarningCode
impl Unpin for WarningCode
impl UnsafeUnpin for WarningCode
impl UnwindSafe for WarningCode
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