Enum markdown::LineEnding
source · pub enum LineEnding {
CarriageReturnLineFeed,
CarriageReturn,
LineFeed,
}
Expand description
Type of line endings in markdown.
Particularly when working with Windows, you might want to use
LineEnding::CarriageReturnLineFeed
.
Examples
use markdown::LineEnding;
// Use a CR + LF combination:
let crlf = LineEnding::CarriageReturnLineFeed;
Variants§
Implementations§
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 FromStr for LineEnding
impl FromStr for LineEnding
source§impl PartialEq<LineEnding> for LineEnding
impl PartialEq<LineEnding> for LineEnding
source§fn eq(&self, other: &LineEnding) -> bool
fn eq(&self, other: &LineEnding) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.