pub enum BreakType {
Lf,
Cr,
CrLf,
Eof,
}Expand description
The type of line terminator that ends a Line.
Variants§
Lf
\n (line feed)
Cr
\r (bare carriage return — no following \n)
CrLf
\r\n (CRLF pair)
Eof
End of input — the line has no terminator.
Implementations§
Trait Implementations§
impl Copy for BreakType
impl Eq for BreakType
impl StructuralPartialEq for BreakType
Auto Trait Implementations§
impl Freeze for BreakType
impl RefUnwindSafe for BreakType
impl Send for BreakType
impl Sync for BreakType
impl Unpin for BreakType
impl UnsafeUnpin for BreakType
impl UnwindSafe for BreakType
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