pub enum AreaType {
Show 16 variants
Page,
Region,
Header,
Footer,
Block,
Line,
Inline,
Text,
Space,
Viewport,
Footnote,
FootnoteSeparator,
Column,
FloatArea,
SidebarStart,
SidebarEnd,
}Expand description
Types of areas in the area tree
Variants§
Page
Page area - represents a physical page
Region
Region area - represents a page region (body, before, after, start, end)
Header
Header area - static content at top of page
Footer area - static content at bottom of page
Block
Block area - block-level formatting context
Line
Line area - contains inline areas
Inline
Inline area - inline-level content
Text
Text area - actual text content
Space
Space area - whitespace
Viewport
Viewport area - for images, SVG, etc.
Footnote
Footnote area - footnote content
FootnoteSeparator
Footnote separator area - line above footnotes
Column
Column area - represents a column in multi-column layout
FloatArea
Float area - floating element (like CSS floats)
SidebarStart
Sidebar start area - static content on the start (left) side of the page
SidebarEnd
Sidebar end area - static content on the end (right) side of the page
Trait Implementations§
impl Copy for AreaType
impl Eq for AreaType
impl StructuralPartialEq for AreaType
Auto Trait Implementations§
impl Freeze for AreaType
impl RefUnwindSafe for AreaType
impl Send for AreaType
impl Sync for AreaType
impl Unpin for AreaType
impl UnsafeUnpin for AreaType
impl UnwindSafe for AreaType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more