pub enum LineEnding {
Lf,
Crlf,
}Expand description
The line terminator emitted for document line breaks when rendering.
Selected through RenderOptions. It applies to every structural document break,
including breaks emitted inside line suffixes and union branches. Text is written
verbatim, so newlines embedded in text (Doc::text("a\nb")) and the terminators
inside a Doc::MultilineText payload are never
normalized, and the terminator length never affects fitting, indentation, or
contextual column values. LineEnding::Lf is the default.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for LineEnding
impl Clone for LineEnding
impl Copy 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 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