#[non_exhaustive]pub enum RegionRole {
Panel,
Table,
TableHeader {
column: usize,
},
TableCell {
row: usize,
column: usize,
},
TableFooter {
column: usize,
},
Rule,
Heading {
level: u8,
},
Code,
Link,
Other(String),
}Expand description
What a semantic region is: the role a renderable reports for the cells it
drew. See RegionSink.
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.
Panel
A Panel: its border, padding and content.
Table
A Table, title and caption included.
TableHeader
A header cell of column column (from 0).
TableCell
A body cell: row row of the table’s rows, column column (from 0).
A footer cell of column column (from 0).
Rule
A Rule.
Heading
A Markdown heading, level 1 to 6.
Code
A Markdown code block.
Link
A hyperlink. Core reports links through Style::link,
not through a sink; consumers derive link regions from styles.
Other(String)
A role an extension names.
Trait Implementations§
Source§impl Clone for RegionRole
impl Clone for RegionRole
Source§impl Debug for RegionRole
impl Debug for RegionRole
impl Eq for RegionRole
Source§impl PartialEq for RegionRole
impl PartialEq for RegionRole
impl StructuralPartialEq for RegionRole
Auto Trait Implementations§
impl Freeze for RegionRole
impl RefUnwindSafe for RegionRole
impl Send for RegionRole
impl Sync for RegionRole
impl Unpin for RegionRole
impl UnsafeUnpin for RegionRole
impl UnwindSafe for RegionRole
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.