pub struct DocumentIr {
pub template_id: String,
pub model: ModelKind,
pub page_size: Option<Size>,
pub page_template: Option<PageTemplate>,
pub collision: Option<CollisionPolicy>,
pub page_collision: Option<CollisionPolicy>,
pub guides: BTreeMap<String, Length>,
pub regions: BTreeMap<String, RegionIr>,
pub exclusions: BTreeMap<String, ExclusionIr>,
pub ai_policy: AiPolicy,
pub elements: Vec<ElementIr>,
}Expand description
Bound instance ready for measurement and layout.
Fields§
§template_id: StringTemplate identity.
model: ModelKindModel.
page_size: Option<Size>Optional page size.
page_template: Option<PageTemplate>Resolved page metadata.
collision: Option<CollisionPolicy>Bound document-wide collision policy.
page_collision: Option<CollisionPolicy>Bound page collision policy inherited after the document policy.
guides: BTreeMap<String, Length>Named guides.
regions: BTreeMap<String, RegionIr>Named regions.
exclusions: BTreeMap<String, ExclusionIr>Named page-relative exclusions.
ai_policy: AiPolicyOptional external-tool edit policy, retained but never executed by core.
elements: Vec<ElementIr>Bound root nodes.
Trait Implementations§
Source§impl Clone for DocumentIr
impl Clone for DocumentIr
Source§fn clone(&self) -> DocumentIr
fn clone(&self) -> DocumentIr
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 DocumentIr
impl Debug for DocumentIr
Source§impl<'de> Deserialize<'de> for DocumentIr
impl<'de> Deserialize<'de> for DocumentIr
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DocumentIr
impl PartialEq for DocumentIr
Source§impl Serialize for DocumentIr
impl Serialize for DocumentIr
impl StructuralPartialEq for DocumentIr
Auto Trait Implementations§
impl Freeze for DocumentIr
impl RefUnwindSafe for DocumentIr
impl Send for DocumentIr
impl Sync for DocumentIr
impl Unpin for DocumentIr
impl UnsafeUnpin for DocumentIr
impl UnwindSafe for DocumentIr
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
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
Convert this type into
T, using the provided data to resolve any offsets.