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 duplicate 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 RenderNode
impl Debug for RenderNode
Source§impl Default for RenderNode
impl Default for RenderNode
Source§fn default() -> RenderNode
fn default() -> RenderNode
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for RenderNode
impl !RefUnwindSafe for RenderNode
impl Send for RenderNode
impl !Sync for RenderNode
impl Unpin for RenderNode
impl UnsafeUnpin 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