#[non_exhaustive]pub enum NodeKind {
Root,
PageSet,
PageArea,
ContentArea,
Subform,
SubformSet,
Field,
Draw,
ExclGroup,
Other,
}Expand description
Kind of a layout node in the IR.
Other covers anything we don’t classify yet; it intentionally does not
carry payload because v1 of the IR aims for a closed, reviewable enum.
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.
Root
The root sentinel of the layout tree.
PageSet
pageSet container.
PageArea
pageArea container.
ContentArea
contentArea container.
Subform
subform container.
SubformSet
subformSet container.
Field
Form field.
Draw
draw (static decoration).
ExclGroup
exclGroup (radio-button-like exclusive group).
Other
Anything not yet classified.
Implementations§
Trait Implementations§
Source§impl Ord for NodeKind
impl Ord for NodeKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for NodeKind
impl PartialOrd for NodeKind
impl Copy for NodeKind
impl Eq for NodeKind
impl StructuralPartialEq for NodeKind
Auto Trait Implementations§
impl Freeze for NodeKind
impl RefUnwindSafe for NodeKind
impl Send for NodeKind
impl Sync for NodeKind
impl Unpin for NodeKind
impl UnsafeUnpin for NodeKind
impl UnwindSafe for NodeKind
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