pub struct HtmlText {
pub value: String,
pub only_whitespace: bool,
}Expand description
Text content in an HTML document.
Fields§
§value: StringThe text content.
If the text has non-whitespace characters, it is trimmed. Otherwise, if the text is solely whitespace, it is kept as-is. This emulates the behaviour of Chromium browsers.
only_whitespace: boolWhether the text content is solely whitespace.
Implementations§
Trait Implementations§
impl StructuralPartialEq for HtmlText
Auto Trait Implementations§
impl Freeze for HtmlText
impl RefUnwindSafe for HtmlText
impl Send for HtmlText
impl Sync for HtmlText
impl Unpin for HtmlText
impl UnwindSafe for HtmlText
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