pub struct LoadSettings { /* private fields */ }
Expand description
Settings that provide different options of how to parse HTML.
Implementations§
Source§impl LoadSettings
impl LoadSettings
pub fn new() -> Self
Sourcepub fn all_text_separately(self, b: bool) -> Self
pub fn all_text_separately(self, b: bool) -> Self
Store all text values in separate children nodes. Even those text which is alone in tag body without other children.
True by default.
Sourcepub fn set_all_text_separately(&mut self, b: bool)
pub fn set_all_text_separately(&mut self, b: bool)
See [all_text_separately
].
Sourcepub fn owned_children(self) -> Self
pub fn owned_children(self) -> Self
Node owns all of its children. This is a default value.
Sourcepub fn sharable_children(self) -> Self
pub fn sharable_children(self) -> Self
Node can share its children. Opposite to owned_children
.
Trait Implementations§
Source§impl Clone for LoadSettings
impl Clone for LoadSettings
Source§fn clone(&self) -> LoadSettings
fn clone(&self) -> LoadSettings
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 Debug for LoadSettings
impl Debug for LoadSettings
Source§impl Default for LoadSettings
impl Default for LoadSettings
Source§impl PartialEq for LoadSettings
impl PartialEq for LoadSettings
impl StructuralPartialEq for LoadSettings
Auto Trait Implementations§
impl Freeze for LoadSettings
impl RefUnwindSafe for LoadSettings
impl Send for LoadSettings
impl Sync for LoadSettings
impl Unpin for LoadSettings
impl UnwindSafe for LoadSettings
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