#[non_exhaustive]pub enum RawNodeClassification {
ExpectedUserMacroDefinition,
Unexpected(UnexpectedRawNode),
}Expand description
The currently accepted and unexpected shapes of an RDS-lowered Raw node.
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.
ExpectedUserMacroDefinition
The empirically observed USERMACRO definition shape across supported
RDS producers (installed help databases and direct saveRDS of
parse_Rd output): one text child, no option, and the exact
srcref/macro attribute shapes checked by classify_raw_node.
Unexpected(UnexpectedRawNode)
A Raw node outside that pinned exception.
Trait Implementations§
Source§impl Clone for RawNodeClassification
impl Clone for RawNodeClassification
Source§fn clone(&self) -> RawNodeClassification
fn clone(&self) -> RawNodeClassification
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 moreSource§impl Debug for RawNodeClassification
impl Debug for RawNodeClassification
impl Eq for RawNodeClassification
Source§impl PartialEq for RawNodeClassification
impl PartialEq for RawNodeClassification
impl StructuralPartialEq for RawNodeClassification
Auto Trait Implementations§
impl Freeze for RawNodeClassification
impl RefUnwindSafe for RawNodeClassification
impl Send for RawNodeClassification
impl Sync for RawNodeClassification
impl Unpin for RawNodeClassification
impl UnsafeUnpin for RawNodeClassification
impl UnwindSafe for RawNodeClassification
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