#[non_exhaustive]pub enum BomPolicy {
Strip,
Keep,
Error,
}Expand description
Treatment of an initial UTF-8 byte-order mark.
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.
Strip
Retain it as a separate prelude and diagnose it informationally.
Keep
Treat it as ordinary statement text.
Error
Retain it as an invalid item and report an error.
Trait Implementations§
impl Copy for BomPolicy
impl Eq for BomPolicy
impl StructuralPartialEq for BomPolicy
Auto Trait Implementations§
impl Freeze for BomPolicy
impl RefUnwindSafe for BomPolicy
impl Send for BomPolicy
impl Sync for BomPolicy
impl Unpin for BomPolicy
impl UnsafeUnpin for BomPolicy
impl UnwindSafe for BomPolicy
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