#[non_exhaustive]pub enum Block {
TextBlock(Box<LayoutTextBlock>),
TableBlock(Box<LayoutTableBlock>),
ListBlock(Box<LayoutListBlock>),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TextBlock(Box<LayoutTextBlock>)
Block consisting of text content.
TableBlock(Box<LayoutTableBlock>)
Block consisting of table content/structure.
ListBlock(Box<LayoutListBlock>)
Block consisting of list content/structure.
Trait Implementations§
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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