#[non_exhaustive]pub enum Break {
Any = 0,
Cr = 1,
Ln = 2,
CrLn = 3,
}Expand description
Line break type.
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.
Any = 0
Let the parser choose the break type.
Cr = 1
Use CR for line breaks (Mac style).
Ln = 2
Use LN for line breaks (Unix style).
CrLn = 3
Use CR LN for line breaks (DOS style).
Trait Implementations§
Source§impl Ord for Break
impl Ord for Break
Source§impl PartialOrd for Break
impl PartialOrd for Break
impl Copy for Break
impl Eq for Break
impl StructuralPartialEq for Break
Auto Trait Implementations§
impl Freeze for Break
impl RefUnwindSafe for Break
impl Send for Break
impl Sync for Break
impl Unpin for Break
impl UnwindSafe for Break
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