[−][src]Struct rslint_core::DirectiveParser
Fields
root_node: SyntaxNode
declarator: String
A string denoting the start of a directive, rslint-
by default.
Implementations
impl<'store> DirectiveParser<'store>
[src]
pub fn new(
root_node: SyntaxNode,
file_id: usize,
store: &'store CstRuleStore
) -> Self
[src]
root_node: SyntaxNode,
file_id: usize,
store: &'store CstRuleStore
) -> Self
Make a new directive parser from the root node of a file.
Panics
Panics if the node's kind is not SCRIPT or MODULE
pub fn get_file_directives(
&self
) -> Result<Vec<DirectiveParseResult>, Diagnostic>
[src]
&self
) -> Result<Vec<DirectiveParseResult>, Diagnostic>
Auto Trait Implementations
impl<'store> !RefUnwindSafe for DirectiveParser<'store>
impl<'store> Send for DirectiveParser<'store>
impl<'store> Sync for DirectiveParser<'store>
impl<'store> Unpin for DirectiveParser<'store>
impl<'store> !UnwindSafe for DirectiveParser<'store>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erasable for T
unsafe fn unerase(this: NonNull<Erased>) -> NonNull<T>
const ACK_1_1_0: bool
fn erase(this: NonNull<Self>) -> NonNull<Erased>
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,