Struct html2text::RenderNode
source · pub struct RenderNode { /* private fields */ }
Expand description
Common fields from a node.
Implementations§
source§impl RenderNode
impl RenderNode
sourcepub fn new(info: RenderNodeInfo) -> RenderNode
pub fn new(info: RenderNodeInfo) -> RenderNode
Create a node from the RenderNodeInfo.
sourcepub fn get_size_estimate(&self) -> SizeEstimate
pub fn get_size_estimate(&self) -> SizeEstimate
Get a size estimate
sourcepub fn is_shallow_empty(&self) -> bool
pub fn is_shallow_empty(&self) -> bool
Return true if this node is definitely empty. This is used to quickly remove e.g. links with no anchor text in most cases, but can’t recurse and look more deeply.
Trait Implementations§
source§impl Clone for RenderNode
impl Clone for RenderNode
source§fn clone(&self) -> RenderNode
fn clone(&self) -> RenderNode
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for RenderNode
impl Send for RenderNode
impl !Sync for RenderNode
impl Unpin for RenderNode
impl UnwindSafe for RenderNode
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