Skip to main content

BlockItemStyle

Trait BlockItemStyle 

pub trait BlockItemStyle: CoreStyle {
    // Provided methods
    fn is_table(&self) -> bool { ... }
    fn float(&self) -> Float { ... }
    fn clear(&self) -> Clear { ... }
}
Expand description

The set of styles required for a Block layout item (child of a Block container)

Provided Methods§

fn is_table(&self) -> bool

Whether the item is a table. Table children are handled specially in block layout.

fn float(&self) -> Float

Whether the item is a floated

fn clear(&self) -> Clear

Whether the item is a floated

Implementations on Foreign Types§

§

impl<T> BlockItemStyle for &T
where T: BlockItemStyle,

Available on crate feature block_layout only.
§

fn is_table(&self) -> bool

§

fn float(&self) -> Float

§

fn clear(&self) -> Clear

Implementors§

§

impl<S> BlockItemStyle for Style<S>
where S: CheapCloneStr,

Available on crate feature block_layout only.