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§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Directive
impl !RefUnwindSafe for Directive
impl Send for Directive
impl Sync for Directive
impl Unpin for Directive
impl !UnwindSafe for Directive
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