pub struct ElementIr {Show 26 fields
pub id: ElementId,
pub kind: ElementKind,
pub geometry: GeometryIr,
pub transform: TransformIr,
pub text: Option<String>,
pub text_options: TextIr,
pub table: Option<TableIr>,
pub asset: Option<String>,
pub path: Vec<PathCommandIr>,
pub image: ImageOptions,
pub style: Style,
pub style_rules: Vec<ElementStyleRule>,
pub layout: LayoutMode,
pub distribute: Distribution,
pub gap: Length,
pub collision: Option<CollisionPolicy>,
pub children: Vec<ElementIr>,
pub locked: bool,
pub hidden: bool,
pub layer: String,
pub z_index: i32,
pub binding: Option<String>,
pub when: Option<String>,
pub repeat: Option<String>,
pub provenance: Provenance,
pub page_placement: Option<PagePlacement>,
}Expand description
Expanded format-neutral element.
Fields§
§id: ElementIdStable ID.
kind: ElementKindElement kind.
geometry: GeometryIrGeometry intent.
transform: TransformIrTransform intent resolved only after layout proposes a box.
text: Option<String>Literal or bound text.
text_options: TextIrText measurement and overflow intent.
table: Option<TableIr>First-class table planning intent and bound rows.
asset: Option<String>Explicit asset reference.
path: Vec<PathCommandIr>Vector commands in element-local source coordinates.
image: ImageOptionsImage crop and fit intent.
style: StyleTyped inline/cascaded style.
style_rules: Vec<ElementStyleRule>Ordered conditional style layers evaluated during data binding.
layout: LayoutModeLayout strategy.
distribute: DistributionDistribution of children on a flow’s primary axis.
gap: LengthGap between flow children.
collision: Option<CollisionPolicy>Optional policy overriding the inherited collision policy.
children: Vec<ElementIr>Child elements in deterministic source order.
locked: boolImmutable after compile unless a privileged caller builds a new IR.
Visibility after binding rules.
layer: StringVisual layer independent of collision.
z_index: i32Visual order within layer.
binding: Option<String>Data binding expression.
when: Option<String>Conditional expression.
repeat: Option<String>Repeat expression.
provenance: ProvenanceProvenance.
page_placement: Option<PagePlacement>Root-only master/role page placement; children inherit their root.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ElementIr
impl<'de> Deserialize<'de> for ElementIr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl StructuralPartialEq for ElementIr
Auto Trait Implementations§
impl Freeze for ElementIr
impl RefUnwindSafe for ElementIr
impl Send for ElementIr
impl Sync for ElementIr
impl Unpin for ElementIr
impl UnsafeUnpin for ElementIr
impl UnwindSafe for ElementIr
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.