[−][src]Struct rslint_parser::ast::ImportDecl
Implementations
impl ImportDecl
[src]
pub fn import_token(&self) -> Option<SyntaxToken>
[src]
pub fn imports(&self) -> AstChildren<ImportClause>ⓘNotable traits for AstChildren<N>
impl<N: AstNode> Iterator for AstChildren<N> type Item = N;
[src]
Notable traits for AstChildren<N>
impl<N: AstNode> Iterator for AstChildren<N> type Item = N;
pub fn semicolon_token(&self) -> Option<SyntaxToken>
[src]
impl ImportDecl
[src]
pub fn source(&self) -> Option<Literal>
[src]
The source of the import, such as import a from "a"
("a"), or import "foo"
("foo")
Trait Implementations
impl AstNode for ImportDecl
[src]
fn can_cast(kind: SyntaxKind) -> bool
[src]
fn cast(syntax: SyntaxNode) -> Option<Self>
[src]
fn syntax(&self) -> &SyntaxNode
[src]
fn text(&self) -> String
[src]
fn range(&self) -> TextRange
[src]
impl Clone for ImportDecl
[src]
fn clone(&self) -> ImportDecl
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ImportDecl
[src]
impl Display for ImportDecl
[src]
impl Eq for ImportDecl
[src]
impl Hash for ImportDecl
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ImportDecl> for ImportDecl
[src]
fn eq(&self, other: &ImportDecl) -> bool
[src]
fn ne(&self, other: &ImportDecl) -> bool
[src]
impl StructuralEq for ImportDecl
[src]
impl StructuralPartialEq for ImportDecl
[src]
Auto Trait Implementations
impl RefUnwindSafe for ImportDecl
impl Send for ImportDecl
impl Sync for ImportDecl
impl Unpin for ImportDecl
impl UnwindSafe for ImportDecl
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,