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 socketry_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§impl Debug for LineEnding
impl Debug for LineEnding
Source§impl Default for LineEnding
impl Default for LineEnding
impl Eq for LineEnding
Source§impl FromStr for LineEnding
impl FromStr for LineEnding
Source§impl PartialEq for LineEnding
impl PartialEq 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 UnsafeUnpin 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