#[non_exhaustive]pub enum NlfConversionMode {
LineSeparation,
ParagraphSeparator,
Unknown,
}Expand description
Indicates how NLF-sequences (LF, CRLF, CR, NEL) should be converted.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LineSeparation
Indicates that NLF-sequences are representing a line break, and should be converted to the codepoint for line separation (LS).
This is equivalent to the UTF8PROC_NLF2LS option in the C library.
ParagraphSeparator
Indicates that NLF-sequences are representing a paragraph break, and should be converted to the codepoint for paragraph separation (PS).
This is equivalent to the UTF8PROC_NLF2PS option in the C library.
Unknown
Indicates that the meaning of NLF-sequences is unknown.
Note that this option is distinct from disabling NLF conversion.
This is equivalent to the UTF8PROC_NLF2LF option in the C library.
Trait Implementations§
Source§impl Clone for NlfConversionMode
impl Clone for NlfConversionMode
Source§fn clone(&self) -> NlfConversionMode
fn clone(&self) -> NlfConversionMode
Returns a duplicate 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 NlfConversionMode
impl Debug for NlfConversionMode
impl Copy for NlfConversionMode
Auto Trait Implementations§
impl Freeze for NlfConversionMode
impl RefUnwindSafe for NlfConversionMode
impl Send for NlfConversionMode
impl Sync for NlfConversionMode
impl Unpin for NlfConversionMode
impl UnwindSafe for NlfConversionMode
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