pub enum TrimWhitespaceInText {
Keep,
Trim,
}
Expand description
Whether to trim leading and trailing whitespace in the text body of an HTML tag.
Currently, all Unicode whitespace characters are trimmed, not just ASCII whitespace.
The default is to keep all whitespace.
Variants§
Keep
Leading and trailing whitespace will be preserved in the text.
Trim
Leading and trailing whitespace will be trimmed from the text.
Trait Implementations§
Source§impl Clone for TrimWhitespaceInText
impl Clone for TrimWhitespaceInText
Source§fn clone(&self) -> TrimWhitespaceInText
fn clone(&self) -> TrimWhitespaceInText
Returns a copy 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 Default for TrimWhitespaceInText
impl Default for TrimWhitespaceInText
Source§fn default() -> TrimWhitespaceInText
fn default() -> TrimWhitespaceInText
Returns the “default value” for a type. Read more
Source§impl PartialEq for TrimWhitespaceInText
impl PartialEq for TrimWhitespaceInText
impl Copy for TrimWhitespaceInText
impl StructuralPartialEq for TrimWhitespaceInText
Auto Trait Implementations§
impl Freeze for TrimWhitespaceInText
impl RefUnwindSafe for TrimWhitespaceInText
impl Send for TrimWhitespaceInText
impl Sync for TrimWhitespaceInText
impl Unpin for TrimWhitespaceInText
impl UnwindSafe for TrimWhitespaceInText
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