pub struct LayoutTreeIR {
pub schema_version: u32,
pub root: LayoutNode,
}Expand description
Top-level IR document.
Fields§
§schema_version: u32Schema version of this IR document. See SCHEMA_VERSION.
root: LayoutNodeRoot layout node.
Implementations§
Source§impl LayoutTreeIR
impl LayoutTreeIR
Sourcepub fn to_canonical_json(&self) -> String
pub fn to_canonical_json(&self) -> String
Render this IR to a canonical, deterministic JSON string.
See canonical_json for the formatting contract.
Sourcepub fn node_count(&self) -> usize
pub fn node_count(&self) -> usize
Total number of nodes in the tree, including the root.
Trait Implementations§
Source§impl Clone for LayoutTreeIR
impl Clone for LayoutTreeIR
Source§fn clone(&self) -> LayoutTreeIR
fn clone(&self) -> LayoutTreeIR
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 LayoutTreeIR
impl Debug for LayoutTreeIR
Source§impl Default for LayoutTreeIR
impl Default for LayoutTreeIR
Source§impl PartialEq for LayoutTreeIR
impl PartialEq for LayoutTreeIR
Source§fn eq(&self, other: &LayoutTreeIR) -> bool
fn eq(&self, other: &LayoutTreeIR) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LayoutTreeIR
Auto Trait Implementations§
impl Freeze for LayoutTreeIR
impl RefUnwindSafe for LayoutTreeIR
impl Send for LayoutTreeIR
impl Sync for LayoutTreeIR
impl Unpin for LayoutTreeIR
impl UnsafeUnpin for LayoutTreeIR
impl UnwindSafe for LayoutTreeIR
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