pub enum LayoutBlock {
Paragraph(ParagraphBlock),
Table(TableBlock),
}Expand description
A laid-out block element (paragraph or table).
Variants§
Paragraph(ParagraphBlock)
Table(TableBlock)
Implementations§
Source§impl LayoutBlock
impl LayoutBlock
Sourcepub fn total_height(&self) -> f64
pub fn total_height(&self) -> f64
Total height including spacing.
Sourcepub fn content_height(&self) -> f64
pub fn content_height(&self) -> f64
Content height without spacing.
pub fn space_before(&self) -> f64
pub fn space_after(&self) -> f64
pub fn keep_next(&self) -> bool
pub fn keep_lines(&self) -> bool
pub fn page_break_before(&self) -> bool
pub fn widow_control(&self) -> bool
Trait Implementations§
Source§impl Clone for LayoutBlock
impl Clone for LayoutBlock
Source§fn clone(&self) -> LayoutBlock
fn clone(&self) -> LayoutBlock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LayoutBlock
impl RefUnwindSafe for LayoutBlock
impl Send for LayoutBlock
impl Sync for LayoutBlock
impl Unpin for LayoutBlock
impl UnsafeUnpin for LayoutBlock
impl UnwindSafe for LayoutBlock
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