pub struct RenderObject {
pub content: RenderContent,
pub position: Position,
pub metrics: Metrics,
pub children: RefCell<Vec<RenderObject>>,
}Fields§
§content: RenderContent§position: Position§metrics: Metrics§children: RefCell<Vec<RenderObject>>Implementations§
Source§impl RenderObject
impl RenderObject
pub fn new(content: RenderContent, position: Position, metrics: Metrics) -> Self
pub fn set_children(&self, children: Vec<RenderObject>)
Trait Implementations§
Source§impl Clone for RenderObject
impl Clone for RenderObject
Source§fn clone(&self) -> RenderObject
fn clone(&self) -> RenderObject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RenderObject
impl Debug for RenderObject
Source§impl Default for RenderObject
impl Default for RenderObject
Source§fn default() -> RenderObject
fn default() -> RenderObject
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for RenderObject
impl !RefUnwindSafe for RenderObject
impl Send for RenderObject
impl !Sync for RenderObject
impl Unpin for RenderObject
impl UnsafeUnpin for RenderObject
impl UnwindSafe for RenderObject
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