pub enum DirectiveOutcome {
Honored,
DanglingSkip,
UnmatchedOn,
UnclosedOff,
Unsupported,
}Expand description
What a recognized directive accomplished after placement and region matching.
The linter consumes this retained resolver fact for meta diagnostics; it must not repeat the CST attachment walk or try to infer region state from the merged suppression ranges.
Variants§
Honored
The directive targets a construct or file, opens a region that is later closed, or closes such a region.
DanglingSkip
A skip has no following meaningful construct.
UnmatchedOn
An on has no matching open region with the same axis and rule.
UnclosedOff
An off has no matching on; its range still extends to EOF.
Unsupported
The carrier or axis is recognized but unsupported by the consumer.
Trait Implementations§
Source§impl Clone for DirectiveOutcome
impl Clone for DirectiveOutcome
Source§fn clone(&self) -> DirectiveOutcome
fn clone(&self) -> DirectiveOutcome
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 DirectiveOutcome
Source§impl Debug for DirectiveOutcome
impl Debug for DirectiveOutcome
impl Eq for DirectiveOutcome
Source§impl PartialEq for DirectiveOutcome
impl PartialEq for DirectiveOutcome
impl StructuralPartialEq for DirectiveOutcome
Auto Trait Implementations§
impl Freeze for DirectiveOutcome
impl RefUnwindSafe for DirectiveOutcome
impl Send for DirectiveOutcome
impl Sync for DirectiveOutcome
impl Unpin for DirectiveOutcome
impl UnsafeUnpin for DirectiveOutcome
impl UnwindSafe for DirectiveOutcome
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