#[non_exhaustive]pub enum Keep {
Nothing,
NewlineAndTab,
}Expand description
The controls strip_unsafe leaves in place.
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.
Nothing
Nothing: every unsafe character goes, newline and tab included.
NewlineAndTab
Newline and tab, the two controls that preformatted text needs.
Trait Implementations§
impl Copy for Keep
impl Eq for Keep
impl StructuralPartialEq for Keep
Auto Trait Implementations§
impl Forget for Keep
impl Freeze for Keep
impl Move for Keep
impl RefUnwindSafe for Keep
impl Send for Keep
impl Sync for Keep
impl Unpin for Keep
impl UnsafeUnpin for Keep
impl UnwindSafe for Keep
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