pub enum LineBreaks {
Br,
Space,
}Expand description
How to emit line breaks inside a block.
Variants§
Br
<br> — for text where the author’s line breaks carry meaning, like chat or notes. Every
other channel keeps line breaks.
Space
The newline character only — the browser folds it into a space. For reading a document wrapped at 80 columns as paragraphs.
Trait Implementations§
Source§impl Clone for LineBreaks
impl Clone for LineBreaks
impl Copy for LineBreaks
Source§impl Debug for LineBreaks
impl Debug for LineBreaks
Source§impl Default for LineBreaks
impl Default for LineBreaks
impl Eq for LineBreaks
Source§impl PartialEq for LineBreaks
impl PartialEq for LineBreaks
impl StructuralPartialEq for LineBreaks
Auto Trait Implementations§
impl Freeze for LineBreaks
impl RefUnwindSafe for LineBreaks
impl Send for LineBreaks
impl Sync for LineBreaks
impl Unpin for LineBreaks
impl UnsafeUnpin for LineBreaks
impl UnwindSafe for LineBreaks
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