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 for LineEnding
impl PartialEq 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 ==
.impl Eq for LineEnding
impl StructuralEq for LineEnding
impl StructuralPartialEq for LineEnding
Auto Trait Implementations§
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