pub enum LineEnding {
Lf,
CrLf,
Cr,
LfCr,
None,
}
Expand description
The line ending of a Line
.
Variants§
Lf
Use \n
for line ending (POSIX-style)
CrLf
Use \r\n
for line ending (Windows-style)
Cr
Use \r
for line ending (many legacy systems)
LfCr
Use \n\r
for line ending (some legacy systems)
None
No line ending
Implementations§
Source§impl LineEnding
impl LineEnding
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
Gets the string representation of the LineEnding
.
Trait Implementations§
Source§impl Clone for LineEnding
impl Clone for LineEnding
Source§fn clone(&self) -> LineEnding
fn clone(&self) -> LineEnding
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LineEnding
impl Debug for LineEnding
Source§impl Default for LineEnding
impl Default for LineEnding
Source§fn default() -> LineEnding
fn default() -> LineEnding
Returns the “default value” for a type. Read more
Source§impl PartialEq for LineEnding
impl PartialEq for LineEnding
impl Copy for LineEnding
impl Eq for LineEnding
impl StructuralPartialEq for LineEnding
Auto Trait Implementations§
impl Freeze for LineEnding
impl RefUnwindSafe for LineEnding
impl Send for LineEnding
impl Sync for LineEnding
impl Unpin for LineEnding
impl UnwindSafe for LineEnding
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.