pub struct Fold {
pub id: String,
pub orientation: String,
pub position: Option<Dimension>,
pub source_span: Option<Span>,
}Expand description
A non-printing fold-line position declared on a Page.
Declared as a fold child of a page; it is a sibling of rendering nodes
but is itself never rendered. A vertical fold has an x position; a
horizontal fold has a y position. Used for tri-fold / bi-fold print
layouts so the validator can advise when content crosses a fold line.
Fields§
§id: String§orientation: String"vertical" (position is an x coordinate) or "horizontal" (position
is a y coordinate). Any other / absent value defaults to "vertical".
position: Option<Dimension>The fold-line position: x for a vertical fold, y for a horizontal fold.
None when the author omitted position.
source_span: Option<Span>Trait Implementations§
impl StructuralPartialEq for Fold
Auto Trait Implementations§
impl Freeze for Fold
impl RefUnwindSafe for Fold
impl Send for Fold
impl Sync for Fold
impl Unpin for Fold
impl UnsafeUnpin for Fold
impl UnwindSafe for Fold
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