Struct rslint_core::directives::Directive [−][src]
pub struct Directive {
pub line: usize,
pub comment: Comment,
pub components: Vec<Component>,
pub command: Option<Command>,
}
Expand description
Any command that is given to the linter using an inline comment.
Fields
line: usize
The line number in which the directive comment was parsed.
comment: Comment
components: Vec<Component>
command: Option<Command>
Contains the parsed Command
, but is None
if the components
failed to be parsed as a valid Command
.
Implementations
Finds the component which contains the given index in his span.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Directive
impl !UnwindSafe for Directive
Blanket Implementations
Mutably borrows from an owned value. Read more
Whether this implementor has acknowledged the 1.1.0 update to
unerase
’s documented implementation requirements. Read more