pub struct Columns {
pub count: Option<u32>,
pub width: Option<f32>,
pub gap: f32,
pub rule: ColumnRule,
}Expand description
How a page’s content box divides, from column-count,
column-width and column-gap.
Both column-count and column-width are what the author asked
for rather than what the page does: a content box only so wide
takes only so many columns of a given width, and
PageGeometry::column_count is where the two meet.
Fields§
§count: Option<u32>column-count, or None for auto.
width: Option<f32>column-width: the width a column is asked to have, or
None for auto.
gap: f32column-gap: the gutter between two columns.
rule: ColumnRuleWhat is painted down each gutter.
Implementations§
Trait Implementations§
impl Copy for Columns
impl StructuralPartialEq for Columns
Auto Trait Implementations§
impl Freeze for Columns
impl RefUnwindSafe for Columns
impl Send for Columns
impl Sync for Columns
impl Unpin for Columns
impl UnsafeUnpin for Columns
impl UnwindSafe for Columns
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> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§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.