pub struct PageArtifact {
pub address: PageAddress,
pub page_index: usize,
pub page_number: Option<usize>,
pub width_mm: f32,
pub height_mm: f32,
pub content_width_mm: f32,
pub content_height_mm: f32,
pub measure_span: Option<MeasureSpan>,
pub diagnostics: Vec<PageArtifactDiagnostic>,
pub layout: PageLayout,
}Expand description
A host-neutral page export descriptor.
This is intentionally geometry and metadata only. Hosts may turn each descriptor into SVG, PDF, or another artifact without making this crate depend on a file format or UI API.
Fields§
§address: PageAddress§page_index: usize§page_number: Option<usize>§width_mm: f32§height_mm: f32§content_width_mm: f32§content_height_mm: f32§measure_span: Option<MeasureSpan>§diagnostics: Vec<PageArtifactDiagnostic>§layout: PageLayoutTrait Implementations§
Source§impl Clone for PageArtifact
impl Clone for PageArtifact
Source§fn clone(&self) -> PageArtifact
fn clone(&self) -> PageArtifact
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 PageArtifact
impl Debug for PageArtifact
Source§impl<'de> Deserialize<'de> for PageArtifact
impl<'de> Deserialize<'de> for PageArtifact
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 PageArtifact
impl PartialEq for PageArtifact
Source§impl Serialize for PageArtifact
impl Serialize for PageArtifact
impl StructuralPartialEq for PageArtifact
Auto Trait Implementations§
impl Freeze for PageArtifact
impl RefUnwindSafe for PageArtifact
impl Send for PageArtifact
impl Sync for PageArtifact
impl Unpin for PageArtifact
impl UnsafeUnpin for PageArtifact
impl UnwindSafe for PageArtifact
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