#[non_exhaustive]pub enum StructureRole {
Document,
Paragraph,
Heading(u8),
List,
ListItem,
Table,
TableRow,
TableHeaderCell,
TableCell,
Figure,
}Expand description
Backend-neutral semantic role for one logical structure element.
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.
Trait Implementations§
Source§impl Clone for StructureRole
impl Clone for StructureRole
Source§fn clone(&self) -> StructureRole
fn clone(&self) -> StructureRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StructureRole
Source§impl Debug for StructureRole
impl Debug for StructureRole
impl Eq for StructureRole
Source§impl PartialEq for StructureRole
impl PartialEq for StructureRole
impl StructuralPartialEq for StructureRole
Auto Trait Implementations§
impl Freeze for StructureRole
impl RefUnwindSafe for StructureRole
impl Send for StructureRole
impl Sync for StructureRole
impl Unpin for StructureRole
impl UnsafeUnpin for StructureRole
impl UnwindSafe for StructureRole
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